/* Sign-in / sign-up popup. Flat colours only. */
.auth-modal .modal-dialog { max-width: 880px; }
.auth-modal .modal-content { border: 0; border-radius: 26px; overflow: hidden; box-shadow: 0 40px 90px -30px rgba(11, 34, 57, .65); }
.modal-backdrop.show { opacity: .62; background: var(--navy); }
.am-grid { display: grid; grid-template-columns: 5fr 6fr; min-height: 580px; }
.am-brand { position: relative; background: var(--navy); color: #bccbdb; padding: 40px 34px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; overflow: hidden; }
.am-brand::after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .08); right: -170px; top: -140px; pointer-events: none; }
.am-brand h2 { color: #fff; font-size: 1.75rem; letter-spacing: -.035em; line-height: 1.15; margin-bottom: 12px; }
.am-brand .ab-sub { margin-bottom: 26px; font-size: .94rem; }
.am-brand .ab-points { gap: 16px; }
.am-brand .ab-points i { width: 38px; height: 38px; border-radius: 12px; font-size: 1.05rem; }
.am-brand .ab-points b { font-size: .9rem; }
.am-brand .ab-points span { font-size: .8rem; }
.am-logo { height: 46px; width: auto; background: #fff; border-radius: 12px; padding: 6px 12px; align-self: flex-start; position: relative; z-index: 1; }
.am-body { position: relative; padding: 44px 40px 36px; background: #fff; overflow-y: auto; max-height: 92vh; }
.am-close { position: absolute; top: 14px; right: 14px; z-index: 6; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--cream); color: var(--ink); display: grid; place-items: center; transition: background .2s; }
.am-close:hover { background: var(--cream-2); }
.am-tabs { display: flex; gap: 4px; background: var(--cream); padding: 5px; border-radius: 14px; margin-bottom: 26px; }
.am-tabs button { flex: 1; border: 0; background: transparent; padding: 10px 12px; border-radius: 10px; font-family: var(--font); font-weight: 500; font-size: .92rem; color: var(--muted); transition: all .2s; }
.am-tabs button.active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(11, 34, 57, .12); }
.am-switch { text-align: center; margin: 20px 0 0; font-size: .9rem; color: var(--muted); }
.linklike { background: none; border: 0; padding: 0; color: var(--green); font-weight: 500; font-family: var(--font); }
.linklike:hover { text-decoration: underline; text-underline-offset: 3px; }
.am-body .form-floating > .form-control { height: 56px; }
.am-body .auth-row { margin-bottom: 18px; }

@media (max-width: 767.98px) {
  .am-grid { grid-template-columns: 1fr; min-height: 0; }
  .am-brand { display: none; }
  .auth-modal .modal-content { border-radius: 0; }
  .am-body { padding: 58px 22px 32px; max-height: none; }
}
@media (min-width: 576px) and (max-width: 767.98px) {
  .auth-modal .modal-dialog { max-width: 520px; }
  .auth-modal .modal-content { border-radius: 24px; }
  .am-body { max-height: 90vh; }
}
@media (prefers-reduced-motion: reduce) { .modal.fade .modal-dialog { transition: none; } }
