/* BlueWaves account pages — centered form card on a plain background. */
.auth-page {
  min-height: 100svh;
  background: var(--bg-body);
}
.auth-page::before, .auth-page::after { content: none; }
.auth-shell {
  display: grid;
  place-items: center;
  min-height: 100svh;
  width: 100%;
  padding: 32px 16px;
  margin: 0;
}
.auth-form-side { width: 100%; max-width: 450px; }
.auth-card-icon {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  background: #fff;
  border: 1px solid var(--border-card);
  border-radius: 12px;
  margin: 0 auto 20px;
}
.auth-card-icon img { width: 80px; height: 80px; object-fit: contain; }
/* Match the transparent homepage branding on both login forms. */
.auth-card-icon-transparent {
  width: 154px;
  height: 110px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.auth-card-icon-transparent img { width: 154px; height: 110px; }

.auth-card-help a { display: inline-flex; align-items: center; }
.auth-card-footer {
  border-top: 1px solid var(--border-subtle);
  margin-top: 25px;
  padding-top: 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.auth-home-link { color: var(--text-muted); font-size: .72rem; }
.auth-home-link:hover { color: var(--secondary); }
.auth-card { position: relative; background: var(--bg-surface); border: 1px solid var(--border-card); border-radius: 20px; padding: 30px 34px 22px; box-shadow: var(--shadow-lg); }
.auth-role-switch { display: flex; padding: 4px; background: var(--bg-body); border: 1px solid var(--border-subtle); border-radius: 12px; gap: 4px; margin-bottom: 28px; }
.auth-role-switch a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 8px; padding: 10px 4px; font-size: .75rem; color: var(--text-muted); font-weight: 600; }
.auth-role-switch a[aria-current="page"] { color: var(--text-main); background: var(--bg-surface-elevated); box-shadow: var(--shadow-sm); }
.auth-role-switch a[aria-current="page"] svg { color: var(--secondary); }
.auth-label { font-size: .6rem; font-weight: 700; letter-spacing: .18em; color: var(--text-muted); margin-bottom: 8px; }
.auth-card h1 { font-size: 1.9rem; letter-spacing: -.045em; font-weight: 700; line-height: 1.2; margin-bottom: 11px; }
.auth-intro { color: var(--text-muted); font-size: .8rem; line-height: 1.8; margin-bottom: 26px; }
.auth-field { margin-bottom: 20px; }
.auth-field label { display: block; font-size: .75rem; font-weight: 600; margin-bottom: 8px; }
.auth-input-wrap { position: relative; display: flex; align-items: center; background: var(--bg-body); border: 1px solid var(--border-card); border-radius: 11px; transition: border-color .2s, box-shadow .2s; }
.auth-input-wrap:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(2,132,199,.14); }
.auth-input-wrap:has([aria-invalid="true"]) { border-color: var(--danger); }
.auth-input-icon { position: absolute; left: 14px; color: var(--text-dim); pointer-events: none; width: 17px; }
.auth-input-wrap input { background: transparent; color: var(--text-main); border: 0; width: 100%; min-width: 0; height: 51px; padding: 0 42px; font-size: .78rem; border-radius: inherit; }
.auth-input-wrap input::placeholder { color: var(--text-dim); opacity: 1; }
.auth-password-toggle { position: absolute; right: 4px; width: 38px; height: 40px; display: grid; place-items: center; color: var(--text-muted); cursor: pointer; border: 0; border-radius: 8px; background: transparent; }
.auth-password-toggle:hover { color: var(--secondary); background: var(--bg-surface-elevated); }
.auth-password-toggle[aria-pressed="true"]::after { content: ''; width: 22px; height: 1.5px; background: currentColor; position: absolute; transform: rotate(45deg); }
.auth-recovery-links { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 10px; font-size: .69rem; margin: -4px 0 23px; }
.auth-recovery-links a { color: var(--secondary); font-weight: 500; }
.auth-recovery-links > span { width: 1px; height: 11px; background: var(--border-card); }
.auth-recovery-links a:hover, .auth-back-link:hover, .auth-card-help a:hover { text-decoration: underline; text-underline-offset: 3px; }
.auth-submit { width: 100%; display: flex; align-items: center; justify-content: center; gap: 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 11px; min-height: 50px; padding: 13px 18px; background: var(--accent-gradient); color: white; font-size: .8rem; font-weight: 700; cursor: pointer; box-shadow: 0 5px 20px rgba(2,132,199,.18); transition: transform .2s, box-shadow .2s; }
.auth-submit:hover { transform: translateY(-1px); background: var(--accent-gradient-hover); box-shadow: 0 8px 24px rgba(2,132,199,.28); }
.auth-submit:disabled { cursor: wait; opacity: .65; transform: none; }
.auth-card-help { font-size: .69rem; color: var(--text-muted); text-align: center; margin-top: 21px; line-height: 1.8; }
.auth-card-help a { color: var(--text-main); font-weight: 600; gap: 4px; }
.auth-field-error { font-size: .7rem; color: #fb7185; margin-top: 7px; line-height: 1.5; }
.auth-field-hint { font-size: .67rem; color: var(--text-muted); margin-top: 8px; line-height: 1.6; }
.auth-caps-warning { color: var(--warning); }
.auth-form-status { font-size: .72rem; line-height: 1.7; padding: 12px 14px; border-radius: 9px; background: rgba(245,158,11,.07); border: 1px solid rgba(245,158,11,.25); color: var(--text-main); margin-top: 16px; overflow-wrap: anywhere; }
.auth-form-status[data-kind="success"] { background: rgba(16,185,129,.07); border-color: rgba(16,185,129,.25); }
.auth-noscript { margin-top: 16px; font-size: .75rem; color: var(--warning); }
.auth-page [hidden] { display: none !important; }
.auth-back-link { display: inline-flex; align-items: center; gap: 7px; color: var(--text-muted); font-size: .73rem; margin-bottom: 28px; }
.auth-country { padding-left: 16px; padding-right: 14px; color: var(--text-muted); font-size: .8rem; border-right: 1px solid var(--border-card); }
.auth-phone-wrap input { padding-left: 14px; padding-right: 14px; }
.auth-recovery-tip { display: flex; gap: 10px; background: var(--bg-body); border: 1px solid var(--border-subtle); border-radius: 11px; padding: 14px; margin-top: 23px; }
.auth-recovery-tip > svg { flex-shrink: 0; color: var(--secondary); margin-top: 2px; }
.auth-recovery-tip strong { font-size: .69rem; font-weight: 600; }
.auth-recovery-tip p { font-size: .65rem; color: var(--text-muted); margin-top: 4px; line-height: 1.7; }
.auth-recovery-tip a { color: var(--secondary); }

.auth-page a:focus-visible, .auth-page button:focus-visible { outline: 2px solid var(--secondary); outline-offset: 4px; }
.auth-skip-link { position: absolute; z-index: 10; left: 20px; top: -100px; background: var(--primary); color: white; padding: 10px 16px; border-radius: 8px; }
.auth-skip-link:focus { top: 12px; }
[data-theme="light"] .auth-field-error { color: #be123c; }
[data-theme="light"] .auth-label { color: #475569; }
@media (max-width: 480px) {
  .auth-shell { padding: 24px 16px; }
  .auth-card { padding: 24px 21px 18px; border-radius: 18px; }
  .auth-card h1 { font-size: 1.6rem; }
  .auth-role-switch { margin-bottom: 23px; }
  .auth-card-icon { margin-bottom: 17px; }
  .auth-intro { font-size: .76rem; margin-bottom: 22px; }
  .auth-input-wrap input { font-size: 1rem; }
  .auth-recovery-links { font-size: .73rem; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-page *, .auth-page *::before, .auth-page *::after { transition: none !important; scroll-behavior: auto !important; }
}
