/* ── Auth Screen ── */
.auth-screen {
  background: linear-gradient(135deg, #f0f2f5 0%, #e8eaf6 100%);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* ── Auth Card ── */
.auth-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(45, 47, 168, 0.1);
  width: 100%;
  max-width: 420px;
  padding: 40px 36px 36px;
}

/* ── Auth Logo ── */
.auth-logo {
  display: flex;
  align-items: flex-end;
  gap: 0;
  margin-bottom: 28px;
  text-decoration: none;
}
.auth-logo .logo-img { height: 44px; }
.auth-wordmark {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -1px;
  color: #1a1f3a;
  line-height: 1;
}
.auth-dot {
  width: 10px;
  height: 10px;
  background: #2d2fa8;
  border-radius: 50%;
  margin-left: 3px;
  margin-bottom: 18px;
  flex-shrink: 0;
}

/* ── Auth Text ── */
.auth-title {
  font-family: 'Rubik', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
}
.auth-sub {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 26px;
  line-height: 1.55;
}
.auth-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 7px;
}

/* ── Auth Input ── */
.auth-input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  margin-bottom: 18px;
  background: #fafbfc;
}
.auth-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45, 47, 168, 0.08);
  background: #fff;
}
.auth-input.error {
  border-color: var(--red);
}

/* ── Auth Button ── */
.auth-btn {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 13px;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.auth-btn:hover { background: #2325a0; }
.auth-btn:active { transform: scale(0.98); }
.auth-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ── Auth Error ── */
.auth-error {
  background: var(--red-bg);
  border: 1px solid rgba(220, 38, 38, 0.2);
  color: var(--red);
  border-radius: 8px;
  padding: 10px 13px;
  font-size: 13px;
  margin-bottom: 14px;
  display: none;
}
.auth-error.show { display: block; }

/* OTP-specific warning icon, shown ahead of the error text */
#otpError.show::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  vertical-align: -3px;
  background: url('../assets/Otp-warning-exclamatory.png') center / contain no-repeat;
}

/* ── Auth Hint ── */
.auth-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 16px;
  text-align: center;
  line-height: 1.5;
}
.auth-hint a {
  color: var(--accent);
  text-decoration: none;
  cursor: pointer;
}

/* ── OTP Inputs ── */
.otp-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 22px;
}
.otp-input {
  width: 48px;
  height: 56px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 22px;
  font-weight: 600;
  text-align: center;
  color: var(--text-primary);
  background: #fafbfc;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.otp-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45, 47, 168, 0.08);
  background: #fff;
}
.otp-input.filled {
  border-color: var(--accent);
  background: var(--accent-light);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .auth-logo .logo-img { height: 46px; }
}
@media (max-width: 480px) {
  .auth-card { padding: 28px 20px 24px; }
  .auth-logo .logo-img { height: 40px; }

  .auth-title { font-size: 24px; }
  .auth-sub   { font-size: 15px; }
  .auth-label { font-size: 14px; }
  .auth-input { font-size: 16px; padding: 13px 16px; }
  .auth-btn   { font-size: 16px; padding: 15px; }
  .auth-hint  { font-size: 14px; }
  .auth-screen { padding: 16px; }
  .auth-card   { padding: 24px 16px 20px; }
  .otp-row     { gap: 8px; }
  .otp-input   { width: 42px; height: 51px; font-size: 20px; }
}
@media (max-width: 360px) {
  .otp-row   { gap: 6px; }
  .otp-input { width: 37px; height: 47px; font-size: 18px; }
}

.policy-select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  padding: 12px 40px 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  background-color: var(--surface);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23362680' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  margin-bottom: 20px;
}
.policy-select:hover {
  border-color: var(--accent);
}
.policy-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(54, 38, 128, 0.12);
}
.policy-select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ── Policy selection list ── */
.policy-options {
  max-height: 220px;
  overflow-y: auto;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  margin-bottom: 20px;
}

.policy-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  padding: 10px 14px;
  border: none;
  border-bottom: 1px solid var(--border);
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-family: 'Manrope', sans-serif;
}
.policy-option:last-child { border-bottom: none; }
.policy-option:hover { background: var(--accent-light); }
.policy-option.selected {
  background: var(--accent-light);
  box-shadow: inset 0 0 0 1.5px var(--accent);
}

.policy-option-title  { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.policy-option-domain { font-size: 12px; font-weight: 600; color: var(--accent); }
.policy-option-insured{ font-size: 12px; font-weight: 400; color: var(--text-secondary); }

.policy-option-empty {
  padding: 16px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}