/* ==========================================================================
   CPOL Portal — استایل صفحه ورود (OTP)
   ========================================================================== */

.auth-page { background: var(--bg); }
.auth-page .site-footer { display: none; }
.auth-page main {
  display: flex; align-items: center; justify-content: center;
  padding: 40px 20px; min-height: calc(100vh - 73px);
}
.auth-wrap { width: 100%; display: flex; justify-content: center; }

.auth-card {
  display: grid; grid-template-columns: 1.05fr 1fr; width: 100%; max-width: 980px;
  background: #fff; border-radius: 26px; overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
  min-height: 620px;
}

/* پنل برند */
.auth-side {
  position: relative; background: var(--grad-navy); color: #fff;
  padding: 46px 42px; display: flex; flex-direction: column; overflow: hidden;
}
.auth-side .brand { margin-bottom: 44px; position: relative; }
.auth-side h2 { color: #fff; font-size: 1.55rem; line-height: 1.6; margin-bottom: 26px; position: relative; }
.auth-points { position: relative; display: flex; flex-direction: column; gap: 16px; }
.auth-points li { display: flex; align-items: flex-start; gap: 11px; color: rgba(255,255,255,.8); font-size: .93rem; }
.auth-points .icon { color: var(--sky-300); margin-top: 3px; }
.auth-side::after {
  content: ''; position: absolute; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(56,189,248,.25), transparent 70%);
  bottom: -120px; inset-inline-end: -100px; pointer-events: none;
}

/* فرم */
.auth-form-area { padding: 52px 46px; display: flex; flex-direction: column; justify-content: center; }
.auth-form-area h1 { font-size: 1.55rem; margin-bottom: 8px; }
.auth-sub { color: var(--muted); margin-bottom: 26px; font-size: .95rem; }
.auth-form .field-label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 8px; }
.phone-input {
  display: flex; align-items: center; gap: 10px;
  border: 1.7px solid var(--border-2); border-radius: 13px; padding: 12px 15px;
  transition: border-color .2s, box-shadow .2s; background: #FAFCFF;
}
.phone-input:focus-within { border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(30,94,255,.1); }
.phone-input .icon { color: var(--muted-2); }
.phone-input input {
  flex: 1; border: 0; outline: 0; background: none; font-size: 1.05rem; letter-spacing: 1px;
  text-align: left; font-weight: 600;
}
.field-help { display: block; color: var(--muted-2); font-size: .8rem; margin: 10px 2px 22px; }
.auth-form .btn-lg { margin-top: 4px; }

.back-link {
  display: inline-flex; align-items: center; gap: 5px; align-self: flex-start;
  background: none; border: 0; color: var(--muted); font-size: .86rem; font-weight: 600;
  margin-bottom: 18px; padding: 4px 8px; border-radius: 8px;
}
.back-link:hover { color: var(--blue-600); background: var(--blue-100); }

/* جعبه‌های OTP */
.otp-boxes { display: flex; gap: 12px; justify-content: center; margin: 8px 0 24px; }
.otp-digit {
  width: 58px; height: 66px; border: 1.7px solid var(--border-2); border-radius: 15px;
  text-align: center; font-size: 1.7rem; font-weight: 800; color: var(--navy-900);
  background: #FAFCFF; outline: 0; caret-color: var(--blue-600);
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.otp-digit:focus {
  border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(30,94,255,.12);
  transform: translateY(-3px); background: #fff;
}
.otp-digit.filled { border-color: var(--blue-500); background: #F4F9FF; }

.resend-row {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 18px; color: var(--muted); font-size: .88rem;
}
.resend-row b { color: var(--blue-600); }
.resend-row .link-btn { font-size: .9rem; }
.auth-security {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  color: var(--muted-2); font-size: .8rem; margin-top: 26px;
}

.otp-hint {
  display: flex; align-items: center; gap: 8px;
  background: var(--amber-bg); color: var(--amber); border: 1px solid #F5D9A8;
  border-radius: 11px; padding: 10px 14px; font-size: .86rem; margin-bottom: 18px;
}
.otp-hint-mock { background: var(--blue-100); color: var(--blue-600); border-color: #C9DFFF; }
.otp-hint b { letter-spacing: 2px; }

@media (max-width: 840px) {
  .auth-card { grid-template-columns: 1fr; min-height: 0; }
  .auth-side { display: none; }
  .auth-form-area { padding: 38px 26px; }
  .otp-digit { width: 50px; height: 58px; }
}

#resendBtn[disabled] { display: none; }
.resend-row { justify-content: center; text-align: center; }
