/* ────────────────────────────────────────────────────────────
   Now Bangalore — Auth Pages Stylesheet
   Two-panel layout, Mulish font, branded gradient, OTP inputs
   ──────────────────────────────────────────────────────────── */

/* ── Reset & base ─────────────────────────────────────────── */
.nb-auth-body {
    margin: 0;
    padding: 0;
    font-family: 'Mulish', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    color: #1e293b;
    background: #f8fafc;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.nb-auth-body *,
.nb-auth-body *::before,
.nb-auth-body *::after {
    box-sizing: border-box;
}

/* ── Layout: two-panel ───────────────────────────────────── */
.nb-auth-layout {
    display: flex;
    min-height: 100vh;
}

/* ── Brand panel (left) ──────────────────────────────────── */
.nb-auth-brand {
    width: 440px;
    min-height: 100vh;
    flex-shrink: 0;
    background: linear-gradient(160deg, #0f172a 0%, #1e293b 40%, #312e81 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
}

/* Decorative circles */
.nb-auth-brand::before,
.nb-auth-brand::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
    pointer-events: none;
}

.nb-auth-brand::before {
    width: 360px;
    height: 360px;
    background: #818cf8;
    top: -80px;
    right: -80px;
}

.nb-auth-brand::after {
    width: 240px;
    height: 240px;
    background: #a78bfa;
    bottom: -40px;
    left: -60px;
}

.nb-auth-brand-inner {
    position: relative;
    z-index: 1;
}

.nb-auth-logo {
    display: inline-flex;
    align-items: baseline;
    text-decoration: none;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
}

.nb-auth-logo-now {
    color: #f59e0b;
}

.nb-auth-logo-city {
    color: #fff;
}

.nb-auth-brand-tagline {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    max-width: 320px;
}

.nb-auth-brand-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.nb-auth-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
}

.nb-auth-feature-icon {
    font-size: 20px;
    width: 32px;
    text-align: center;
    flex-shrink: 0;
}

/* ── Main panel (right) ──────────────────────────────────── */
.nb-auth-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
    min-height: 100vh;
    background: #f8fafc;
}

/* ── Auth card ───────────────────────────────────────────── */
.nb-auth-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 16px;
    padding: 40px 36px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 24px rgba(0, 0, 0, 0.04);
}

/* ── Header ──────────────────────────────────────────────── */
.nb-auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.nb-auth-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #ede9fe 0%, #e0e7ff 100%);
    color: #4f46e5;
    margin-bottom: 16px;
}

.nb-auth-title {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px;
    letter-spacing: -0.3px;
}

.nb-auth-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    font-weight: 400;
}

/* ── Messages ────────────────────────────────────────────── */
.nb-auth-message {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.5;
}

.nb-auth-message.is-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.nb-auth-message.is-success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.nb-auth-message.is-info {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

/* ── Form fields ─────────────────────────────────────────── */
.nb-auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.nb-auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nb-auth-field > label {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nb-auth-field-link {
    font-size: 12px;
    font-weight: 600;
    color: #6366f1;
    text-decoration: none;
}

.nb-auth-field-link:hover {
    color: #4f46e5;
    text-decoration: underline;
}

/* Input wrapper */
.nb-auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.nb-auth-input-icon {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    pointer-events: none;
    flex-shrink: 0;
}

.nb-auth-input-wrap input {
    width: 100%;
    height: 46px;
    padding: 0 14px 0 42px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Mulish', sans-serif;
    color: #1e293b;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

/* Input without icon */
.nb-auth-input-wrap input:only-child,
.nb-auth-row .nb-auth-field:last-child .nb-auth-input-wrap input {
    padding-left: 14px;
}

/* If icon is present, keep left padding */
.nb-auth-input-wrap .nb-auth-input-icon ~ input {
    padding-left: 42px;
}

.nb-auth-input-wrap input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.nb-auth-input-wrap input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Password toggle */
.nb-auth-toggle-pass {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #94a3b8;
    display: flex;
    align-items: center;
    transition: color 0.15s;
}

.nb-auth-toggle-pass:hover {
    color: #475569;
}

/* Password strength bar */
.nb-auth-password-strength {
    height: 4px;
    border-radius: 2px;
    background: #e2e8f0;
    margin-top: 4px;
    overflow: hidden;
    transition: all 0.3s;
}

.nb-auth-password-strength .nb-strength-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s, background-color 0.3s;
    width: 0;
}

.nb-auth-password-strength[data-strength="weak"] .nb-strength-fill {
    width: 25%;
    background: #ef4444;
}

.nb-auth-password-strength[data-strength="fair"] .nb-strength-fill {
    width: 50%;
    background: #f59e0b;
}

.nb-auth-password-strength[data-strength="good"] .nb-strength-fill {
    width: 75%;
    background: #22c55e;
}

.nb-auth-password-strength[data-strength="strong"] .nb-strength-fill {
    width: 100%;
    background: #059669;
}

.nb-auth-password-strength .nb-strength-text {
    font-size: 11px;
    font-weight: 600;
    margin-top: 4px;
    display: block;
}

/* ── Password strength (reset-password page) ────────────── */
.nb-password-strength {
    display: none;
    align-items: center;
    gap: 10px;
    margin: -4px 0 8px;
}
.nb-password-strength__bar {
    flex: 1;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
}
.nb-password-strength__fill {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: width 0.3s, background 0.3s;
}
.nb-password-strength__label {
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 48px;
    text-align: right;
    transition: color 0.3s;
}

/* ── Row layout (name fields) ────────────────────────────── */
.nb-auth-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ── Checkbox (remember me / terms) ──────────────────────── */
.nb-auth-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #475569;
    font-weight: 500;
}

.nb-auth-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: #6366f1;
    cursor: pointer;
    flex-shrink: 0;
}

.nb-auth-checkbox a {
    color: #6366f1;
    text-decoration: none;
}

.nb-auth-checkbox a:hover {
    text-decoration: underline;
}

/* ── Submit button ───────────────────────────────────────── */
.nb-auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 28px;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Mulish', sans-serif;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
    text-decoration: none;
    text-align: center;
    width: 100%;
}

.nb-auth-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.nb-auth-btn:active {
    transform: translateY(0);
}

.nb-auth-btn.is-loading {
    opacity: 0.7;
    pointer-events: none;
}

.nb-auth-btn.is-loading::after {
    content: '';
    width: 18px;
    height: 18px;
    border: 2px solid transparent;
    border-top-color: #fff;
    border-radius: 50%;
    animation: nb-spin 0.6s linear infinite;
    margin-left: 10px;
}

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

/* ── Alt link (below button) ─────────────────────────────── */
.nb-auth-alt {
    text-align: center;
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
    margin-top: 4px;
}

.nb-auth-alt a {
    color: #6366f1;
    font-weight: 700;
    text-decoration: none;
}

.nb-auth-alt a:hover {
    text-decoration: underline;
}

/* ── OTP inputs ──────────────────────────────────────────── */
.nb-auth-otp-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 8px 0;
}

.nb-auth-otp-input {
    width: 52px;
    height: 58px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    font-family: 'Mulish', monospace;
    color: #0f172a;
    background: #fff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    caret-color: #6366f1;
}

.nb-auth-otp-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.nb-auth-otp-input.is-filled {
    border-color: #a5b4fc;
    background: #f5f3ff;
}

/* ── Info content (verify-email, success) ────────────────── */
.nb-auth-info-content {
    text-align: center;
    padding: 8px 0;
}

.nb-auth-info-content p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 24px;
}

.nb-auth-email-display {
    display: inline-block;
    background: #f1f5f9;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    color: #334155;
    margin-bottom: 16px;
}

/* ── Success page ────────────────────────────────────────── */
.nb-auth-success-content .nb-auth-success-check {
    margin-bottom: 16px;
}

.nb-auth-success-content .nb-auth-success-check svg {
    animation: nb-pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes nb-pop {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* ── Footer ──────────────────────────────────────────────── */
.nb-auth-footer {
    margin-top: 28px;
    text-align: center;
}

.nb-auth-footer a {
    font-size: 13px;
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s;
}

.nb-auth-footer a:hover {
    color: #6366f1;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
    .nb-auth-brand {
        display: none;
    }

    .nb-auth-main {
        padding: 32px 20px;
    }

    .nb-auth-card {
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    .nb-auth-card {
        padding: 28px 20px;
        border-radius: 12px;
    }

    .nb-auth-row {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .nb-auth-otp-input {
        width: 44px;
        height: 50px;
        font-size: 20px;
    }

    .nb-auth-otp-row {
        gap: 8px;
    }

    .nb-auth-title {
        font-size: 22px;
    }
}

/* ── Hide WP admin bar on auth pages ─────────────────────── */
.nb-auth-body #wpadminbar {
    display: none !important;
}

.nb-auth-body {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
