/* ==========================================================================
   AqaryPro Login v3 — page-specific stylesheet
   Tokens come from aqary-tokens.css (loaded before this file).
   Uses logical CSS properties throughout so one file covers RTL + LTR.
   ========================================================================== */

/* ── Shell ────────────────────────────────────────────────────────────────── */

.aq-login-page body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

.aq-login-shell {
  position: relative;
  min-height: 100vh;
  display: flex;
  overflow: hidden;
  background-color: var(--aq-surface);
  background-image:
    radial-gradient(at 8% 12%,  rgba(113, 191, 244, 0.22) 0, transparent 38%),
    radial-gradient(at 92% 18%, rgba(12,  132, 209, 0.14) 0, transparent 42%),
    radial-gradient(at 78% 92%, rgba(30,  159, 242, 0.12) 0, transparent 45%);
}

/* Decorative blobs */
.aq-login-blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(64px);
  pointer-events: none;
  z-index: 0;
}
.aq-login-blob--tl {
  width: 480px;
  height: 480px;
  top: -120px;
  inset-inline-start: -160px;
  background: rgba(113, 191, 244, 0.55);
  opacity: 0.55;
}
.aq-login-blob--br {
  width: 520px;
  height: 520px;
  bottom: -180px;
  inset-inline-end: -120px;
  background: rgba(30, 159, 242, 0.40);
  opacity: 0.45;
}

/* Fading dot-grid overlay */
.aq-login-grid-fade {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right,  rgba(15, 26, 42, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 26, 42, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

/* ── Brand panel (left / right depending on dir) ──────────────────────────── */

.aq-login-brand {
  display: none; /* hidden on mobile */
  position: relative;
  z-index: 1;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem;
  color: #fff;
  overflow: hidden;
  flex-shrink: 0;
  width: 44%;
}

@media (min-width: 992px) {
  .aq-login-brand { display: flex; }
}
@media (min-width: 1200px) {
  .aq-login-brand { width: 48%; }
}

/* Gradient background */
.aq-login-brand::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom left,
    var(--aq-brand-600),
    var(--aq-brand-700),
    var(--aq-brand-900)
  );
  z-index: -1;
}

/* Decorative circles inside brand panel */
.aq-login-brand::after {
  content: '';
  position: absolute;
  top: -4rem;
  inset-inline-start: -4rem;
  width: 18rem;
  height: 18rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.10);
  z-index: -1;
}

.aq-login-brand-circle-br {
  position: absolute;
  bottom: 2.5rem;
  inset-inline-end: 2.5rem;
  width: 24rem;
  height: 24rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

/* Brand panel logo row */
.aq-login-brand-logo-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.aq-login-brand-logo-box {
  background: #fff;
  border-radius: 0.75rem;
  padding: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.aq-login-brand-logo-box img {
  height: 3rem;
  width: auto;
}

/* Hero copy block */
.aq-login-brand-body {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.aq-login-brand-trusted {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(168, 217, 248, 0.9);
  margin-bottom: 0.75rem;
}

.aq-login-brand-hero {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1rem;
  color: #fff;
}

.aq-login-brand-hero span {
  color: var(--aq-brand-200);
}

.aq-login-brand-tagline {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.80);
  line-height: 1.65;
  max-width: 28rem;
}

/* Feature pills */
.aq-login-brand-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.aq-login-brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 9999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.73rem;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
}

.aq-login-brand-pill i {
  font-size: 0.85rem;
  opacity: 0.85;
}

/* Trust / infrastructure chips row */
.aq-login-brand-trust {
  margin-top: 1.1rem;
}

.aq-login-brand-trust-label {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.5rem;
}

.aq-login-brand-trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.aq-login-trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #ffffff;
  color: #1f2d3d;
  border-radius: 9px;
  padding: 0.4rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  white-space: nowrap;
}

.aq-login-trust-glyph {
  height: 16px;
  width: 16px;
  object-fit: contain;
  display: block;
  flex: 0 0 auto;
}

.aq-login-trust-chip i {
  font-size: 0.95rem;
  color: #1f2d3d;
}

/* Brand panel footer */
.aq-login-brand-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

.aq-login-brand-footer a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.15s;
}

.aq-login-brand-footer a:hover {
  color: #fff;
}

.aq-login-brand-footer-links {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ── Form panel ───────────────────────────────────────────────────────────── */

.aq-login-form-panel {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

@media (min-width: 992px) {
  .aq-login-form-panel { padding: 3rem; }
}

.aq-login-form-inner {
  width: 100%;
  max-width: 26rem;
}

/* Mobile logo (hidden >= lg) */
.aq-login-mobile-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.aq-login-mobile-logo img {
  height: 2.5rem;
  width: auto;
}

@media (min-width: 992px) {
  .aq-login-mobile-logo { display: none; }
}

/* ── Language pill toggle ─────────────────────────────────────────────────── */

.aq-login-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.aq-login-top-kicker {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--aq-ink-500);
}

.aq-lang-pill-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: #fff;
  border-radius: 9999px;
  padding: 0.25rem;
  box-shadow: var(--aq-shadow-card);
  border: 1px solid var(--aq-surface-border);
}

.aq-lang-pill-toggle a {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--aq-ink-500);
  transition: background 0.15s, color 0.15s;
}

.aq-lang-pill-toggle a:hover {
  color: var(--aq-ink-800);
}

.aq-lang-pill-toggle a.active {
  background: var(--aq-brand-500);
  color: #fff;
}

/* ── Login heading ────────────────────────────────────────────────────────── */

.aq-login-heading {
  margin-bottom: 1.75rem;
}

.aq-login-heading h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--aq-ink-900);
  margin: 0;
}

/* ── Form fields ─────────────────────────────────────────────────────────── */

.aq-login-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.aq-login-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.aq-login-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.aq-login-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--aq-ink-700);
}

.aq-login-label .req {
  color: #ef4444;
  margin-inline-start: 0.15rem;
}

.aq-login-forgot {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--aq-brand-600);
  text-decoration: none;
}

.aq-login-forgot:hover {
  color: var(--aq-brand-700);
}

.aq-login-input-wrap {
  position: relative;
}

.aq-login-input-icon {
  position: absolute;
  top: 50%;
  inset-inline-start: 0.875rem;
  transform: translateY(-50%);
  color: var(--aq-ink-400);
  font-size: 1rem;
  pointer-events: none;
}

.aq-login-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--aq-surface-border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  padding-inline-start: 2.75rem;
  background: #fff;
  font-size: 0.95rem;
  color: var(--aq-ink-800);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  /* remove Bootstrap form-control override on this page */
  height: auto;
}

.aq-login-input::placeholder {
  color: var(--aq-ink-300);
}

.aq-login-input:focus {
  border-color: var(--aq-brand-500);
  box-shadow: 0 0 0 4px rgba(30, 159, 242, 0.18);
}

/* Password field has eye toggle */
.aq-login-input--has-eye {
  padding-inline-end: 2.75rem;
}

.aq-login-eye-btn {
  position: absolute;
  top: 50%;
  inset-inline-end: 0.5rem;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--aq-ink-400);
  font-size: 1rem;
  padding: 0.25rem 0.5rem;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}

.aq-login-eye-btn:hover {
  color: var(--aq-ink-600);
}

.aq-login-field-hint {
  font-size: 0.75rem;
  color: var(--aq-ink-400);
  margin: 0;
}

/* ── Error / alert block ─────────────────────────────────────────────────── */

#error_div {
  border-radius: 10px;
  font-size: 0.875rem;
}

#success_div {
  border-radius: 10px;
  font-size: 0.875rem;
}

/* ── Submit button ───────────────────────────────────────────────────────── */

.aq-login-submit {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: var(--aq-shadow-elev);
  transition: opacity 0.15s, box-shadow 0.15s, transform 0.2s, filter 0.2s;
  background: linear-gradient(to left, var(--aq-brand-500), var(--aq-brand-600));
}

[dir="ltr"] .aq-login-submit {
  background: linear-gradient(to right, var(--aq-brand-500), var(--aq-brand-600));
}

.aq-login-submit:hover {
  opacity: 0.92;
  box-shadow: var(--aq-shadow-elev), 0 0 0 4px rgba(30, 159, 242, 0.18);
}

.aq-login-submit .aq-submit-arrow {
  font-size: 1.1rem;
  transition: transform 0.15s;
}

.aq-login-submit:hover .aq-submit-arrow {
  transform: translateX(-3px);
}

[dir="ltr"] .aq-login-submit:hover .aq-submit-arrow {
  transform: translateX(3px);
}

/* ── In-button loading state ─────────────────────────────────────────────── */

@keyframes aq-btn-spin {
  to { transform: rotate(360deg); }
}

@keyframes aq-btn-shimmer {
  0%   { left: -80%; }
  100% { left: 130%; }
}

@keyframes aq-btn-ring-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(30, 159, 242, 0.55); }
  65%  { box-shadow: 0 0 0 10px rgba(30, 159, 242, 0);   }
  100% { box-shadow: 0 0 0 10px rgba(30, 159, 242, 0);   }
}

.aq-btn-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.30);
  border-top-color: #fff;
  animation: aq-btn-spin 0.75s linear infinite;
  flex-shrink: 0;
}

.aq-submit-label-loading {
  display: none;
}

.aq-login-submit.is-loading,
.btn.is-loading {
  cursor: not-allowed;
  pointer-events: none;
  position: relative;
  overflow: hidden;
  transform: scale(0.985);
  filter: brightness(0.88);
  animation: aq-btn-ring-pulse 1.8s ease-out infinite;
}

.aq-login-submit.is-loading::after,
.btn.is-loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 55%;
  height: 100%;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(255, 255, 255, 0.28) 50%,
    transparent 100%
  );
  animation: aq-btn-shimmer 1.6s ease-in-out infinite;
  pointer-events: none;
}

.aq-login-submit.is-loading .aq-btn-spinner,
.btn.is-loading .aq-btn-spinner {
  display: inline-block;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.65));
}

.aq-login-submit.is-loading > i.ph,
.btn.is-loading > i.ph {
  display: none;
}

.aq-login-submit.is-loading .aq-submit-label-default,
.btn.is-loading .aq-submit-label-default {
  display: none;
}

.aq-login-submit.is-loading .aq-submit-label-loading,
.btn.is-loading .aq-submit-label-loading {
  display: inline;
}

@media (prefers-reduced-motion: reduce) {
  .aq-btn-spinner {
    animation: none;
    border-color: rgba(255, 255, 255, 0.5);
    border-top-color: #fff;
  }
  .aq-login-submit.is-loading,
  .btn.is-loading {
    animation: none;
  }
  .aq-login-submit.is-loading::after,
  .btn.is-loading::after {
    display: none;
  }
}

/* ── Helper row (helpdesk + version) ────────────────────────────────────── */

.aq-login-helper-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
  font-size: 0.82rem;
}

.aq-login-helper-row a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--aq-ink-500);
  text-decoration: none;
  transition: color 0.15s;
}

.aq-login-helper-row a:hover {
  color: var(--aq-brand-600);
}

.aq-login-version {
  color: var(--aq-ink-400);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

/* Back-to-old-version link under helper row */
.aq-login-back-link {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: #f97316;
  text-decoration: none;
  text-align: center;
}

.aq-login-back-link:hover {
  text-decoration: underline;
  color: #ea6a00;
}

/* ── Forgot-password: success block ────────────────────────────────────── */

#success_div {
  display: none;
}

/* ── Responsive tweaks ───────────────────────────────────────────────────── */

@media (max-width: 480px) {
  .aq-login-form-panel { padding: 1rem; }
  .aq-login-brand-hero { font-size: 1.9rem; }
  .aq-login-heading h2 { font-size: 1.35rem; }
}

/* ── PWA install banner (mobile-only, server-gated) ─────────────────────── */

@keyframes aq-install-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0);   }
}

@keyframes aq-install-pulse {
  0%, 100% { box-shadow: 0 0 0 0   rgba(12, 132, 209, 0.40); }
  50%       { box-shadow: 0 0 0 5px rgba(12, 132, 209, 0);    }
}

.aq-install-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 0.9rem;
  margin-bottom: 1.5rem;
  background: #fff;
  border: 1.5px solid rgba(12, 132, 209, 0.18);
  border-radius: 16px;
  box-shadow:
    0 2px 10px rgba(12, 132, 209, 0.10),
    0 1px 3px  rgba(0, 0, 0, 0.05);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  animation: aq-install-in 0.35s ease both;
}

/* Top-edge accent line */
.aq-install-banner::before {
  content: '';
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  width: 55%;
  height: 2px;
  background: linear-gradient(to right, var(--aq-brand-500), transparent);
  border-radius: 0;
  pointer-events: none;
}

[dir="rtl"] .aq-install-banner::before {
  background: linear-gradient(to left, var(--aq-brand-500), transparent);
}

.aq-install-banner:hover {
  text-decoration: none;
  color: inherit;
  border-color: rgba(12, 132, 209, 0.38);
  box-shadow:
    0 6px 22px rgba(12, 132, 209, 0.16),
    0 1px 4px  rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

/* App icon container */
.aq-install-banner-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(12, 132, 209, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.aq-install-banner-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* Fallback icon (shown via JS onerror) */
.aq-install-banner-icon-fb {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--aq-brand-500);
  font-size: 1.6rem;
}

/* Pulse dot — live indicator */
.aq-install-banner-icon::after {
  content: '';
  position: absolute;
  top: 4px;
  inset-inline-end: 4px;
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: #22c55e;
  border: 2px solid #fff;
  animation: aq-install-pulse 2.2s ease-in-out infinite;
}

/* Text body */
.aq-install-banner-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.aq-install-banner-title {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--aq-ink-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aq-install-banner-sub {
  display: block;
  font-size: 0.72rem;
  color: var(--aq-ink-500);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* CTA section */
.aq-install-banner-cta {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--aq-brand-600);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.aq-install-banner-cta i {
  font-size: 0.95rem;
  transition: transform 0.18s ease;
}

.aq-install-banner:hover .aq-install-banner-cta i {
  transform: translate(2px, -2px);
}

@media (prefers-reduced-motion: reduce) {
  .aq-install-banner,
  .aq-install-banner-icon::after {
    animation: none;
  }
  .aq-install-banner:hover {
    transform: none;
  }
}

/* ── Post-login choice sheet (mobile only, JS-revealed) ──────────────────── */
/* Shown after a successful phone login in place of the old forced redirect;
   lets the user pick between the mobile app and the full website. No close
   affordance by design — the two options are the only exits. */

.aq-login-choice {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  visibility: hidden;
  pointer-events: none;
}

.aq-login-choice.is-open {
  visibility: visible;
  pointer-events: auto;
}

.aq-login-choice-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 26, 42, 0.46);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.aq-login-choice.is-open .aq-login-choice-backdrop {
  opacity: 1;
}

.aq-login-choice-sheet {
  position: relative;
  width: 100%;
  max-width: 30rem;
  background: var(--aq-surface-card);
  border-radius: 22px 22px 0 0;
  padding: 0.75rem 1.5rem 2rem;
  box-shadow: 0 -8px 40px -8px rgba(15, 26, 42, 0.35);
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  outline: none;
}

@media (min-width: 480px) {
  .aq-login-choice-sheet {
    margin-block-end: 1.5rem;
    border-radius: 22px;
  }
}

.aq-login-choice.is-open .aq-login-choice-sheet {
  transform: translateY(0);
}

.aq-login-choice-handle {
  display: block;
  width: 40px;
  height: 4px;
  border-radius: 9999px;
  background: var(--aq-ink-200);
  margin: 0 auto 1.1rem;
}

.aq-login-choice-head {
  text-align: center;
  margin-bottom: 1.35rem;
}

.aq-login-choice-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  margin: 0 auto 0.85rem;
  overflow: hidden;
  box-shadow: var(--aq-shadow-card);
}

.aq-login-choice-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aq-login-choice-title {
  margin: 0 0 0.3rem;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--aq-ink-900);
}

.aq-login-choice-subtitle {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--aq-ink-500);
}

.aq-login-choice-options {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.aq-login-choice-opt {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  border: 1.5px solid var(--aq-surface-border);
  background: var(--aq-surface-card);
  opacity: 0;
  transform: translateY(6px);
  animation: aq-install-in 0.3s ease forwards;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.aq-login-choice-opt:hover {
  text-decoration: none;
  color: inherit;
  transform: translateY(-1px);
}

.aq-login-choice-opt--primary {
  border-color: rgba(12, 132, 209, 0.28);
  background: linear-gradient(180deg, rgba(30, 159, 242, 0.06), rgba(30, 159, 242, 0.02));
  animation-delay: 0.06s;
}

.aq-login-choice-opt--primary:hover {
  border-color: rgba(12, 132, 209, 0.5);
  box-shadow: 0 6px 20px rgba(12, 132, 209, 0.16);
}

.aq-login-choice-opt--secondary {
  animation-delay: 0.12s;
}

.aq-login-choice-opt--secondary:hover {
  border-color: var(--aq-ink-300);
  box-shadow: var(--aq-shadow-card);
}

.aq-login-choice-opt-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(12, 132, 209, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.aq-login-choice-opt-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.aq-login-choice-opt-icon-fb {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--aq-brand-500);
  font-size: 1.4rem;
}

.aq-login-choice-opt-icon--ghost {
  background: var(--aq-ink-100);
  color: var(--aq-ink-500);
  font-size: 1.25rem;
}

.aq-login-choice-opt-body {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.aq-login-choice-opt-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--aq-ink-900);
}

.aq-login-choice-opt-badge {
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--aq-brand-700);
  background: var(--aq-brand-100);
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
}

.aq-login-choice-opt-arrow {
  flex-shrink: 0;
  font-size: 1rem;
  color: var(--aq-ink-400);
}

[dir="ltr"] .aq-login-choice-opt-arrow {
  transform: scaleX(-1);
}

@media (prefers-reduced-motion: reduce) {
  .aq-login-choice-backdrop,
  .aq-login-choice-sheet,
  .aq-login-choice-opt {
    transition: none;
    animation: none;
  }
  .aq-login-choice-opt {
    opacity: 1;
    transform: none;
  }
}
