/* ══════════════════════════════════════════════════
   EYEPLAY  •  Reseller auth pages (login / apply)
   ══════════════════════════════════════════════════ */

:root {
  --auth-navy:   #0F1026;
  --auth-navy-2: #15182C;
  --auth-cyan:   #D62828;
  --auth-blue:   #B71C1C;
  --auth-bg:     #F8F9FA;
  --auth-text:   #122a3e;
  --auth-muted:  #6b7f8f;
  --auth-border: #E8EAED;
  --auth-danger: #b23b32;
  --auth-success:#0f7a4d;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { min-height: 100%; }
body.auth-body {
  margin: 0;
  font-family: 'Roboto', 'Noto Sans Arabic', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--auth-text);
  background:
    radial-gradient(ellipse at 12% 8%, rgba(214, 40, 40, .10), transparent 42%),
    radial-gradient(ellipse at 92% 92%, rgba(15, 16, 38, .10), transparent 46%),
    var(--auth-bg);
  -webkit-font-smoothing: antialiased;
}
body.auth-body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(18, 42, 62, .055) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent 80%);
}
a { color: var(--auth-cyan); text-decoration: none; }
img { max-width: 100%; display: block; }

.auth-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 34px 22px;
}
.auth-shell {
  width: min(960px, 100%);
  display: grid;
  grid-template-columns: minmax(0, .98fr) minmax(0, 1.02fr);
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 22px 60px rgba(8, 38, 62, .16);
}

/* ── Brand panel ───────────────────────────────── */
.auth-aside {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-height: 0;
  padding: clamp(18px, 2.4vw, 30px);
  background: var(--auth-navy);
  color: #fff;
}
.auth-aside::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 74% 26%, rgba(0, 196, 255, .22), transparent 42%),
    radial-gradient(circle at 12% 88%, rgba(214, 40, 40, .22), transparent 44%),
    linear-gradient(145deg, #15182C, #0F1026 72%);
}
.auth-aside::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 60% 30%, #000 0%, transparent 72%);
}
.auth-aside > * { position: relative; z-index: 1; }

.auth-aside-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth-logo {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
}
.auth-logo img { height: 30px; width: auto; }
.auth-logo-tag {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #7fdde9;
  border: 1px solid rgba(127, 221, 233, .38);
  border-radius: 100px;
  padding: 5px 9px;
  white-space: nowrap;
}

.auth-aside-copy { margin-top: 4px; }
.auth-eyebrow {
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #5dd0da;
}
.auth-aside h2 {
  margin: 8px 0;
  font-size: clamp(21px, 2vw, 27px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.045em;
}
.auth-aside p {
  max-width: 430px;
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: #b7c7d3;
}
.auth-benefits {
  display: grid;
  gap: 7px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.auth-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 11.5px;
  line-height: 1.45;
  color: #d9e5ed;
}
.auth-benefits i { flex-shrink: 0; margin-top: 1px; font-size: 16px; color: #4fd1c5; }

.auth-aside-media {
  margin-top: auto;
  padding: 9px;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #eaf3f7);
  box-shadow: 0 20px 44px rgba(0, 0, 0, .3);
}
.auth-aside-media img { width: 100%; height: 118px; object-fit: contain; border-radius: 8px; }
.auth-aside-foot { font-size: 9px; letter-spacing: .16em; color: #6f8697; }

/* ── Form panel ────────────────────────────────── */
.auth-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(18px, 2.6vw, 32px);
}
.auth-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: clamp(24px, 4vh, 44px);
}
.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--auth-muted);
}
.auth-back:hover { color: var(--auth-cyan); }

.auth-langs {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--auth-border);
  border-radius: 100px;
  background: #f1f5f8;
}
.auth-lang {
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--auth-muted);
}
.auth-lang:hover { color: var(--auth-navy); }
.auth-lang.is-active {
  background: #fff;
  color: var(--auth-navy);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .1);
}

.auth-form-head h1 {
  margin: 7px 0 6px;
  font-size: clamp(20px, 1.9vw, 25px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.04em;
  color: var(--auth-text);
}
.auth-form-head p {
  max-width: 430px;
  margin: 0 0 14px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--auth-muted);
}

.auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.55;
}
.auth-alert i { flex-shrink: 0; margin-top: 1px; font-size: 15px; }
.auth-error { color: var(--auth-danger); background: #fff3f2; border: 1px solid #f5d3cf; }
.auth-success { color: var(--auth-success); background: #eef9f3; border: 1px solid #cceadb; }

.auth-form { display: grid; gap: 10px; }
.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.auth-field.full { grid-column: 1 / -1; }
.auth-field > label {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #6b8090;
}
.auth-field > label .req { color: #c0392b; }

.auth-input { position: relative; display: flex; align-items: center; }
.auth-input > i {
  position: absolute;
  left: 13px;
  font-size: 14px;
  color: #93a5b3;
  pointer-events: none;
}
.auth-input input {
  width: 100%;
  height: 47px;
  padding: 0 13px 0 39px;
  border: 1.5px solid var(--auth-border);
  border-radius: 10px;
  outline: none;
  background: #f8fafc;
  color: var(--auth-text);
  font: 14px 'Roboto', sans-serif;
  transition: border-color .16s, box-shadow .16s, background .16s;
}
.auth-input input::placeholder { color: #a5b4bf; }
.auth-input input:focus {
  border-color: var(--auth-cyan);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(214, 40, 40, .12);
}
.auth-input.has-toggle input { padding-right: 45px; }
.auth-toggle {
  position: absolute;
  right: 6px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #8397a6;
  font-size: 15px;
  cursor: pointer;
}
.auth-toggle:hover { background: #eef3f7; color: var(--auth-cyan); }
.auth-hint { font-size: 10.5px; line-height: 1.5; color: #8798a6; }

.auth-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 2px 0;
  font-size: 11.5px;
  line-height: 1.55;
  color: #627685;
}
.auth-check input { flex-shrink: 0; width: 16px; height: 16px; margin-top: 2px; accent-color: var(--auth-cyan); }
.auth-check a { font-weight: 700; }

.auth-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  height: 50px;
  margin-top: 4px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--auth-cyan), var(--auth-blue));
  color: #fff;
  font: 800 11px 'Roboto', sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(214, 40, 40, .24);
  transition: transform .18s, box-shadow .18s;
}
.auth-submit:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(183, 28, 28, .32); }
.auth-submit:active { transform: translateY(0); }

.auth-alt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--auth-border);
  font-size: 12px;
  color: #6b8090;
}
.auth-alt a { font-weight: 800; }
.auth-note { margin-top: 18px; font-size: 11px; line-height: 1.6; color: #8798a6; }
.auth-note a { color: #5a7080; font-weight: 700; }

/* ── Success state ─────────────────────────────── */
.auth-success-box { padding: 6px 0 0; }
.auth-success-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #e6f7ef;
  color: var(--auth-success);
  font-size: 27px;
}
.auth-success-box h1 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.1;
  letter-spacing: -.04em;
}
.auth-success-box p { margin: 0 0 10px; font-size: 13px; line-height: 1.7; color: var(--auth-muted); }
.auth-success-box .auth-success-detail {
  margin: 18px 0;
  padding: 13px 15px;
  border: 1px solid var(--auth-border);
  border-radius: 10px;
  background: #f8fafc;
  font-size: 12px;
  color: #5c7180;
}
.auth-success-box .auth-success-detail strong { color: var(--auth-text); }

/* ── RTL ───────────────────────────────────────── */
[dir="rtl"] .auth-input > i { left: auto; right: 13px; }
[dir="rtl"] .auth-input input { padding: 0 39px 0 13px; }
[dir="rtl"] .auth-input.has-toggle input { padding-left: 45px; padding-right: 39px; }
[dir="rtl"] .auth-toggle { right: auto; left: 6px; }

/* ── Responsive ────────────────────────────────── */
@media (max-width: 920px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-aside {
    min-height: 0;
    gap: 18px;
    padding: 28px;
  }
  .auth-aside-media { display: none; }
  .auth-aside-copy { margin-top: 8px; }
  .auth-aside h2 { max-width: 520px; font-size: 34px; }
  .auth-aside p { font-size: 13px; }
  .auth-benefits { display: none; }
  .auth-aside-foot { display: none; }
  .auth-main { padding: 30px 28px 36px; }
}
@media (max-width: 520px) {
  .auth-wrap { padding: 16px 12px; }
  .auth-shell { border-radius: 18px; }
  .auth-aside { padding: 20px; }
  .auth-aside-copy { margin-top: 12px; }
  .auth-aside h2 { margin: 10px 0 0; font-size: 27px; }
  .auth-aside p { display: none; }
  .auth-aside-top .auth-logo img { height: 26px; }
  .auth-main { padding: 22px 18px 28px; }
  .auth-top { margin-bottom: 22px; }
  .auth-row { grid-template-columns: 1fr; }
  .auth-alt { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ── Partner advantages (price / quality / support) ── */
.auth-advantages {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.auth-adv {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
}
.auth-adv > i {
  font-size: 15px;
  color: #fff;
  width: 30px; height: 30px;
  display: inline-grid; place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--auth-cyan), var(--auth-blue));
  flex-shrink: 0;
}
.auth-adv strong { display: block; font-size: 12px; font-weight: 800; color: #fff; letter-spacing: .01em; }
.auth-adv span { display: block; font-size: 11px; line-height: 1.5; color: rgba(255, 255, 255, .72); }
[dir="rtl"] .auth-adv { flex-direction: row-reverse; text-align: right; }
@media (max-width: 767px) { .auth-advantages { gap: 8px; } .auth-adv { padding: 10px 12px; } }
