/**
 * assets/css/auth-styles.css
 * Unified, Premium Authentication & Registration Design System for BaalaVeda
 * Matching brand colors: Teal (#0d4a4b, #1d8182, #259b9c) & Amber/Terracotta (#e57025, #c53d47)
 */

:root {
    --bv-teal-dark: #0d4a4b;
    --bv-teal-primary: #1d8182;
    --bv-teal-light: #259b9c;
    --bv-orange: #e57025;
    --bv-red: #c53d47;
    --bv-gold: #f59e0b;
    --bv-bg-light: #f8fafc;
    --bv-surface: #ffffff;
    --bv-border: rgba(29, 129, 130, 0.18);
    --bv-grad-primary: linear-gradient(135deg, #0d4a4b 0%, #1d8182 100%);
    --bv-grad-accent: linear-gradient(135deg, #c53d47 0%, #e57025 100%);
    --bv-grad-soft: linear-gradient(135deg, rgba(29,129,130,0.06) 0%, rgba(229,112,37,0.04) 100%);
    --bv-shadow-card: 0 16px 48px rgba(13, 74, 75, 0.12);
    --bv-shadow-sm: 0 4px 14px rgba(13, 74, 75, 0.08);
}

/* ── Auth Wrapper & Card Shell ── */
.bv-auth-section {
    padding: 40px 0 60px;
    background: #f8fafc;
    min-height: 75vh;
    display: flex;
    align-items: center;
}

.bv-auth-card {
    background: var(--bv-surface);
    border-radius: 24px;
    border: 1px solid var(--bv-border);
    box-shadow: var(--bv-shadow-card);
    padding: 38px 42px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

@media (max-width: 576px) {
    .bv-auth-card {
        padding: 26px 20px;
        border-radius: 18px;
    }
}

.bv-auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--bv-grad-accent);
}

/* ── Auth Header & Brand Icon ── */
.bv-auth-header {
    margin-bottom: 28px;
    text-align: left;
}

.bv-auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(29, 129, 130, 0.1);
    color: var(--bv-teal-dark);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 30px;
    margin-bottom: 12px;
}

.bv-auth-badge.badge-admin {
    background: linear-gradient(135deg, rgba(13,74,75,0.12), rgba(197,61,71,0.12));
    color: var(--bv-red);
}

.bv-auth-badge.badge-sarathi {
    background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(229,112,37,0.15));
    color: var(--bv-orange);
}

.bv-auth-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--bv-teal-dark);
    margin: 0 0 6px;
    line-height: 1.25;
}

.bv-auth-subtitle {
    font-size: 13.5px;
    color: #64748b;
    margin: 0;
}

/* ── Role Switcher Dropdown / Segment ── */
.bv-role-select {
    padding: 8px 16px;
    border-radius: 30px;
    border: 1.5px solid var(--bv-teal-light);
    color: var(--bv-teal-dark);
    font-size: 13px;
    font-weight: 700;
    background-color: #fff;
    outline: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(37, 155, 156, 0.1);
    transition: all 0.2s;
}

.bv-role-select:focus {
    border-color: var(--bv-teal-dark);
    box-shadow: 0 0 0 3px rgba(37, 155, 156, 0.2);
}

/* ── Auth Tabs (Password vs OTP) ── */
.bv-auth-tabs {
    display: flex;
    gap: 8px;
    background: #f1f5f9;
    padding: 5px;
    border-radius: 16px;
    margin-bottom: 24px;
}

.bv-auth-tab-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 9px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.bv-auth-tab-btn.active {
    background: #ffffff;
    color: var(--bv-teal-dark);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

/* ── Form Inputs & Floating Labels ── */
.bv-form-group {
    margin-bottom: 20px;
    position: relative;
}

.bv-form-label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
}

.bv-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.bv-input-icon {
    position: absolute;
    left: 16px;
    color: #94a3b8;
    font-size: 15px;
    pointer-events: none;
    transition: color 0.2s;
}

.bv-input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    font-size: 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 14px;
    background: #ffffff;
    color: #1e293b;
    transition: all 0.25s ease;
    outline: none;
}

.bv-input.no-icon {
    padding-left: 16px;
}

.bv-input:focus {
    border-color: var(--bv-teal-light);
    box-shadow: 0 0 0 3.5px rgba(37, 155, 156, 0.16);
}

.bv-input:focus + .bv-input-icon,
.bv-input-wrap:focus-within .bv-input-icon {
    color: var(--bv-teal-primary);
}

.bv-password-toggle {
    position: absolute;
    right: 16px;
    color: #94a3b8;
    cursor: pointer;
    font-size: 15px;
    transition: color 0.2s;
    user-select: none;
}

.bv-password-toggle:hover {
    color: var(--bv-teal-dark);
}

/* ── Buttons ── */
.btn-bv-primary {
    width: 100%;
    background: var(--bv-grad-primary);
    border: none;
    color: #ffffff;
    font-size: 14.5px;
    font-weight: 800;
    padding: 13px 24px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    box-shadow: 0 6px 20px rgba(13, 74, 75, 0.25);
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

.btn-bv-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(13, 74, 75, 0.35);
    color: #ffffff;
}

.btn-bv-accent {
    width: 100%;
    background: var(--bv-grad-accent);
    border: none;
    color: #ffffff;
    font-size: 14.5px;
    font-weight: 800;
    padding: 13px 24px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    box-shadow: 0 6px 20px rgba(197, 61, 71, 0.25);
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

.btn-bv-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(197, 61, 71, 0.35);
    color: #ffffff;
}

.btn-bv-google {
    width: 100%;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    color: #334155;
    font-size: 13.5px;
    font-weight: 700;
    padding: 11px 20px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.25s ease;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.btn-bv-google:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
    transform: translateY(-1px);
}

.btn-bv-google img {
    width: 18px;
    height: 18px;
}

/* ── Divider ── */
.bv-auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 22px 0;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.bv-auth-divider::before,
.bv-auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.bv-auth-divider::before { margin-right: 14px; }
.bv-auth-divider::after { margin-left: 14px; }

/* ── Footer Links ── */
.bv-auth-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 13px;
    color: #64748b;
}

.bv-auth-footer a {
    color: var(--bv-teal-light);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s;
}

.bv-auth-footer a:hover {
    color: var(--bv-teal-dark);
    text-decoration: underline;
}

/* ── OTP Inputs ── */
.bv-otp-inputs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 16px 0 20px;
}

.bv-otp-box {
    width: 48px;
    height: 52px;
    text-align: center;
    font-size: 20px;
    font-weight: 800;
    color: var(--bv-teal-dark);
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    background: #fff;
    outline: none;
    transition: all 0.25s;
}

.bv-otp-box:focus {
    border-color: var(--bv-teal-light);
    box-shadow: 0 0 0 3px rgba(37, 155, 156, 0.2);
}

/* ── Admin Login Dark/Glass Portal Style ── */
.bv-admin-wrapper {
    min-height: 100vh;
    background: radial-gradient(circle at 10% 20%, #0d4a4b 0%, #092c2d 90%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 15px;
}

.bv-admin-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    padding: 44px 40px;
    width: 100%;
    max-width: 440px;
    position: relative;
    overflow: hidden;
}

.bv-admin-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--bv-grad-accent);
}

/* ── Captcha & Security Boxes ── */
.bv-captcha-wrap {
    background: #f8fafc;
    border: 1.5px dashed #cbd5e1;
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 20px;
}

.bv-captcha-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.bv-captcha-text {
    font-family: 'Courier New', monospace;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 4px;
    color: var(--bv-teal-dark);
    background: #e2e8f0;
    padding: 6px 14px;
    border-radius: 8px;
    user-select: none;
    text-decoration: line-through;
}

/* ── Auth Notice Box ── */
.bv-auth-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(229, 112, 37, 0.08);
    border-left: 3.5px solid var(--bv-orange);
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 12.5px;
    color: #7c2d12;
    margin-top: 8px;
}

/* ── Sarathi Hero Accent ── */
.sarathi-accent-bar {
    background: linear-gradient(135deg, #f59e0b 0%, #e57025 100%);
}

