/* ===== MODERN AUTH PAGE - JAGRAN STYLE ===== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans Devanagari', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f8f9fa;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== MAIN CONTAINER ===== */
.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* ===== LEFT SIDE: FORM SECTION ===== */
.auth-form-section {
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-form-wrapper {
    width: 100%;
    max-width: 480px;
}

/* ===== MOBILE LOGO ===== */
.mobile-logo {
    display: none;
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid #f3f4f6;
}

.mobile-logo h2 {
    font-size: 26px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 6px;
    line-height: 1.2;
}

.mobile-tagline {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.auth-header {
    margin-bottom: 32px;
}

.auth-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    line-height: 1.2;
}

.auth-header p {
    font-size: 15px;
    color: #666;
    font-weight: 400;
}

/* ===== ALERTS ===== */
.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.5;
}

.alert svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.alert-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* ===== TABS ===== */
.auth-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    background: #f3f4f6;
    padding: 4px;
    border-radius: 12px;
}

.auth-tab {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-tab:hover {
    color: #374151;
}

.auth-tab.active {
    background: #ffffff;
    color: #1a1a1a;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* ===== FORMS ===== */
.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    color: #1a1a1a;
    background: #ffffff;
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: #1a1a1a;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
}

.form-group input::placeholder {
    color: #9ca3af;
}

/* ===== SECURITY INFO ===== */
.security-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #f9fafb;
    border-radius: 10px;
    margin-bottom: 24px;
}

.security-info svg {
    width: 18px;
    height: 18px;
    color: #16a34a;
    flex-shrink: 0;
}

.security-info span {
    font-size: 13px;
    color: #6b7280;
}

/* ===== BUTTONS ===== */
.btn-primary {
    width: 100%;
    padding: 16px;
    background: #1a1a1a;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-primary:hover {
    background: #000000;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

/* ===== DIVIDER ===== */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
    color: #9ca3af;
    font-size: 14px;
}

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

.divider span {
    padding: 0 16px;
}

/* ===== GOOGLE BUTTON ===== */
.btn-google {
    width: 100%;
    padding: 14px 16px;
    background: #ffffff;
    color: #374151;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: inherit;
}

.btn-google:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-google svg {
    width: 20px;
    height: 20px;
}

/* ===== FOOTER ===== */
.auth-footer {
    margin-top: 32px;
    text-align: center;
}

.auth-footer p {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 16px;
}

.auth-footer a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
}

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

.back-home {
    display: inline-block;
    font-size: 14px;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
}

.back-home:hover {
    color: #1a1a1a;
}

/* ===== RIGHT SIDE: BRANDING SECTION ===== */
.auth-brand-section {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
}

.auth-brand-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

.brand-content {
    position: relative;
    z-index: 1;
    max-width: 560px;
}

.brand-header {
    text-align: center;
    margin-bottom: 48px;
}

.brand-header h2 {
    font-size: 42px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.1;
}

.brand-tagline {
    font-size: 14px;
    font-weight: 600;
    color: #78350f;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ===== BRAND GRID ===== */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 48px;
}

.brand-card {
    background: #ffffff;
    padding: 24px 16px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    cursor: pointer;
}

.brand-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.brand-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.brand-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.brand-card p {
    font-size: 13px;
    color: #6b7280;
}

/* ===== BRAND FEATURES ===== */
.brand-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.feature-item svg {
    width: 24px;
    height: 24px;
    color: #16a34a;
    flex-shrink: 0;
}

.feature-item span {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet */
@media (max-width: 1024px) {
    .auth-container {
        grid-template-columns: 1fr;
    }

    .auth-brand-section {
        display: none;
    }

    .auth-form-wrapper {
        max-width: 520px;
    }

    /* Show mobile logo on tablet and below */
    .mobile-logo {
        display: block;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .auth-form-section {
        padding: 24px 16px;
    }

    .auth-header h1 {
        font-size: 24px;
    }

    .auth-header p {
        font-size: 14px;
    }

    .auth-tabs {
        gap: 6px;
    }

    .auth-tab {
        padding: 10px 16px;
        font-size: 14px;
    }

    .form-group input {
        padding: 12px 14px;
        font-size: 14px;
    }

    .btn-primary {
        padding: 14px;
        font-size: 15px;
    }

    .btn-google {
        padding: 12px 14px;
        font-size: 14px;
    }

    .auth-footer {
        margin-top: 24px;
    }

    .auth-footer p {
        font-size: 12px;
    }
}

/* Small Mobile */
@media (max-width: 380px) {
    .auth-header h1 {
        font-size: 22px;
    }

    .form-group label {
        font-size: 13px;
    }

    .form-group input {
        padding: 11px 12px;
        font-size: 14px;
    }
}

/* Desktop Large */
@media (min-width: 1440px) {
    .auth-form-wrapper {
        max-width: 520px;
    }

    .brand-content {
        max-width: 640px;
    }

    .brand-header h2 {
        font-size: 48px;
    }

    .brand-grid {
        gap: 20px;
    }

    .brand-card {
        padding: 28px 20px;
    }
}
