/* Login / register modal (navy #173f62, orange #d6653e) */
.auth-modal { position: fixed; inset: 0; z-index: 2100; display: grid; place-items: center; padding: 16px; }
.auth-backdrop { position: absolute; inset: 0; background: rgba(13, 26, 38, .62); }
.auth-dialog { position: relative; width: min(440px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; border-top: 3px solid #d6653e; border-radius: 8px; background: #fff; box-shadow: 0 30px 80px rgba(0, 0, 0, .3); }
.auth-close { position: absolute; top: 10px; right: 10px; z-index: 2; display: grid; width: 32px; height: 32px; place-items: center; border: 0; border-radius: 6px; color: #6b7a88; background: transparent; cursor: pointer; }
.auth-close:hover { color: #d6653e; background: #f1f4f6; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; margin-right: 44px; border-bottom: 1px solid #e6eaed; }
.auth-tabs button { padding: 16px 10px; border: 0; border-bottom: 2px solid transparent; color: #6b7a88; background: none; font: 700 13px var(--display); cursor: pointer; }
.auth-tabs button.active { color: #173f62; border-bottom-color: #d6653e; }
.auth-body { padding: 22px 24px 26px; }
.auth-title { margin: 0 0 4px; color: #152333; font: 700 21px var(--display); letter-spacing: -.03em; }
.auth-sub { margin: 0 0 18px; color: #6b7a88; font-size: 13px; }
.auth-alert { margin-bottom: 14px; padding: 10px 12px; border: 1px solid #f3c9c5; border-radius: 6px; color: #b23a31; background: #fdf0ee; font-size: 12.5px; }
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.auth-field { margin-bottom: 14px; }
.auth-field label { display: block; margin: 0 0 6px; color: #2d4358; font-size: 12.5px; font-weight: 600; }
.auth-field .input { height: 44px; padding: 0 14px; border-radius: 6px; font-size: 14px; }
.auth-field .input.is-invalid { border-color: #dc2626; }
.auth-err { margin-top: 4px; color: #dc2626; font-size: 12px; }
.auth-pw { position: relative; }
.auth-pw .input { padding-right: 44px; }
.auth-pw button { position: absolute; top: 0; right: 0; width: 44px; height: 44px; border: 0; color: #6b7a88; background: none; cursor: pointer; }
.auth-remember { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; color: #52657a; font-size: 12.5px; cursor: pointer; }
.auth-remember input { width: 15px; height: 15px; accent-color: #173f62; }
.auth-body .button { min-height: 46px; font-size: 14px; }
.auth-body .button:disabled { opacity: .7; cursor: wait; }
.auth-switch { margin: 16px 0 0; color: #6b7a88; font-size: 12.5px; text-align: center; }
.auth-switch button { padding: 0; border: 0; color: #173f62; background: none; font-weight: 700; cursor: pointer; }
.auth-switch button:hover { color: #d6653e; }
.mobile-nav button.nav-link, .mobile-nav form .nav-link { width: 100%; border: 0; border-bottom: 1px solid #edf0f2; background: none; font: inherit; font-size: 12px; font-weight: 600; text-align: left; cursor: pointer; }
@media (max-width: 480px) { .auth-grid { grid-template-columns: 1fr; } .auth-body { padding: 18px 18px 22px; } }

/* Email OTP step */
.auth-otp { font: 700 26px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .5em; text-align: center; text-indent: .5em; }
.auth-otp::placeholder { color: #c2ccd4; }
.auth-body .auth-sub strong { color: #173f62; word-break: break-all; }
.auth-switch button:disabled { color: #8b99a6; cursor: default; }
.auth-switch button:disabled:hover { color: #8b99a6; }
/* Honeypot: screen se bahar, display:none nahi (bots ko simple lagta hai) */
.auth-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Google login */
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 16px 0 14px; color: #8b99a6; font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: #e6eaed; }
.auth-google { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 16px; border: 1px solid #d3dae0; border-radius: 6px; color: #2d4358; background: #fff; font: 600 14px var(--display); text-decoration: none; cursor: pointer; }
.auth-google:hover { border-color: #173f62; background: #f7f9fa; color: #173f62; }
