﻿/* ============================================
   BIZGO AUTHENTICATION STYLES
   Professional lead generation platform
   Mobile-optimized responsive design
   ============================================ */

/* ====== CSS VARIABLES - LIGHT THEME ====== */
:root {
    /* Primary Colors - Teal */
    --auth-primary: 15, 105, 115;
    --auth-primary-light: 128, 174, 177;
    --auth-primary-dark: 5, 55, 60;
    --auth-primary-50: 229, 240, 240;
    --auth-primary-100: 218, 231, 231;
    /* Secondary Colors - Coral */
    --auth-secondary: 245, 160, 140;
    --auth-secondary-hover: 236, 145, 125;
    --auth-secondary-light: 253, 236, 232;
    /* Status Colors */
    --auth-success: 22, 163, 74;
    --auth-success-light: 220, 252, 231;
    --auth-danger: 220, 38, 38;
    --auth-danger-light: 254, 226, 226;
    --auth-warning: 217, 119, 6;
    --auth-warning-light: 254, 243, 199;
    --auth-info: 127, 116, 246;
    --auth-info-light: 232, 231, 254;
    /* Neutral Colors */
    --auth-white: 255, 255, 255;
    --auth-gray-50: 243, 244, 246;
    --auth-gray-100: 229, 231, 235;
    --auth-gray-200: 209, 213, 219;
    --auth-gray-300: 156, 163, 175;
    --auth-gray-400: 107, 114, 128;
    --auth-gray-500: 75, 85, 99;
    --auth-gray-600: 55, 65, 81;
    --auth-gray-700: 31, 41, 55;
    --auth-gray-800: 17, 24, 39;
    --auth-gray-900: 3, 7, 18;
    /* Spacing & Layout */
    --auth-spacing-xs: 0.25rem;
    --auth-spacing-sm: 0.5rem;
    --auth-spacing-md: 0.75rem;
    --auth-spacing-lg: 1rem;
    --auth-spacing-xl: 1.5rem;
    --auth-spacing-2xl: 2rem;
    --auth-spacing-3xl: 3rem;
    /* Border Radius */
    --auth-radius-sm: 0.375rem;
    --auth-radius-md: 0.5rem;
    --auth-radius-lg: 0.75rem;
    --auth-radius-xl: 1rem;
    /* Shadows */
    --auth-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --auth-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --auth-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --auth-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    /* Transitions */
    --auth-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --auth-transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ====== CSS VARIABLES - DARK THEME ====== */
[data-theme="atriver-dark"] {
    --auth-primary: 100, 165, 175;
    --auth-primary-light: 150, 205, 215;
    --auth-primary-dark: 30, 70, 80;
    --auth-primary-50: 30, 70, 80;
    --auth-primary-100: 20, 50, 55;
    --auth-secondary: 175, 130, 120;
    --auth-secondary-hover: 200, 160, 150;
    --auth-secondary-light: 40, 20, 15;
    --auth-success: 115, 195, 155;
    --auth-success-light: 15, 50, 30;
    --auth-danger: 200, 145, 145;
    --auth-danger-light: 55, 20, 20;
    --auth-warning: 200, 165, 100;
    --auth-warning-light: 55, 45, 10;
    --auth-info: 180, 177, 225;
    --auth-info-light: 45, 42, 70;
    --auth-white: 15, 23, 42;
    --auth-gray-50: 30, 41, 59;
    --auth-gray-100: 51, 65, 85;
    --auth-gray-200: 71, 85, 105;
    --auth-gray-300: 100, 116, 139;
    --auth-gray-400: 148, 163, 184;
    --auth-gray-500: 203, 213, 225;
    --auth-gray-600: 226, 232, 240;
    --auth-gray-700: 241, 245, 249;
    --auth-gray-800: 248, 250, 252;
    --auth-gray-900: 255, 255, 255;
}

/* ====== BASE AUTHENTICATION LAYOUT ====== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(var(--auth-primary), 0.02) 0%, rgba(var(--auth-primary-light), 0.05) 50%, rgba(var(--auth-gray-50), 1) 100%);
    padding: var(--auth-spacing-lg);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.auth-card {
    width: 100%;
    max-width: 1000px;
    background: rgb(var(--auth-white));
    border-radius: var(--auth-radius-xl);
    box-shadow: var(--auth-shadow-xl);
    border: 1px solid rgba(var(--auth-gray-200), 0.8);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
    transition: var(--auth-transition);
}

    .auth-card:hover {
        box-shadow: 0 25px 50px -12px rgba(var(--auth-primary), 0.15);
    }

/* ====== BRAND SECTION ====== */
.auth-brand {
    background: linear-gradient(135deg, rgb(var(--auth-primary)) 0%, rgb(var(--auth-primary-dark)) 100%);
    padding: var(--auth-spacing-3xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

    /* Geometric grid pattern */
    .auth-brand::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.15) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%), radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 40%), linear-gradient(0deg, transparent 24%, rgba(255, 255, 255, 0.02) 25%, rgba(255, 255, 255, 0.02) 26%, transparent 27%, transparent 74%, rgba(255, 255, 255, 0.02) 75%, rgba(255, 255, 255, 0.02) 76%, transparent 77%, transparent), linear-gradient(90deg, transparent 24%, rgba(255, 255, 255, 0.02) 25%, rgba(255, 255, 255, 0.02) 26%, transparent 27%, transparent 74%, rgba(255, 255, 255, 0.02) 75%, rgba(255, 255, 255, 0.02) 76%, transparent 77%, transparent);
        background-size: 300px 300px, 200px 200px, 250px 250px, 50px 50px, 50px 50px;
        background-position: -50px -50px, 100px 100px, 0px 0px, 0 0, 0 0;
    }

    /* Animated floating shapes */
    .auth-brand::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        background: radial-gradient(ellipse at top left, rgba(255, 255, 255, 0.1) 0%, transparent 40%), radial-gradient(ellipse at bottom right, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
        animation: float 20s ease-in-out infinite;
    }

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    33% {
        transform: translate(-20px, -20px) scale(1.05) rotate(1deg);
    }

    66% {
        transform: translate(20px, -10px) scale(0.98) rotate(-1deg);
    }
}

/* Additional decorative elements */
@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

@keyframes slidePattern {
    0% {
        transform: translateX(0) translateY(0);
    }

    100% {
        transform: translateX(50px) translateY(50px);
    }
}

.auth-logo-section {
    margin-bottom: var(--auth-spacing-3xl);
    position: relative;
    z-index: 2;
}

/* Updated logo styles for proper image display */
.auth-logo-container {
    width: 5rem;
    height: 5rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--auth-radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--auth-spacing-2xl);
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 1);
    transition: var(--auth-transition);
    overflow: hidden;
    padding: 0.75rem;
    position: relative;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4), 0 10px 40px rgba(0, 0, 0, 0.2), inset 0 0 20px rgba(255, 255, 255, 0.1);
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% {
        box-shadow: 0 0 30px rgba(255, 255, 255, 0.4), 0 10px 40px rgba(0, 0, 0, 0.2), inset 0 0 20px rgba(255, 255, 255, 0.1);
        transform: translateY(0);
    }

    50% {
        box-shadow: 0 0 50px rgba(255, 255, 255, 0.6), 0 15px 50px rgba(0, 0, 0, 0.25), inset 0 0 25px rgba(255, 255, 255, 0.15);
        transform: translateY(-2px);
    }
}

.auth-logo-container:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 0 60px rgba(255, 255, 255, 0.7), 0 20px 60px rgba(0, 0, 0, 0.3), inset 0 0 30px rgba(255, 255, 255, 0.2);
    animation-play-state: paused;
}

.auth-logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Fallback if logo doesn't load */
.auth-logo-container::after {
    content: 'B';
    position: absolute;
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, rgb(var(--auth-primary)), rgb(var(--auth-primary-light)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: none;
}

.auth-logo-container img[src=""],
.auth-logo-container img:not([src]) {
    display: none;
}

    .auth-logo-container img[src=""]:after,
    .auth-logo-container img:not([src]):after {
        display: block;
    }

.auth-brand-title {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin: 0 0 var(--auth-spacing-md) 0;
    letter-spacing: -0.035em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    line-height: 1.1;
}

.auth-brand-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 var(--auth-spacing-3xl) 0;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.01em;
}

.auth-features {
    display: flex;
    flex-direction: column;
    gap: var(--auth-spacing-xl);
    position: relative;
    z-index: 2;
    width: 100%;
    padding: var(--auth-spacing-xl);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: var(--auth-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), inset 0 0 32px rgba(255, 255, 255, 0.05);
}

.auth-feature {
    display: flex;
    align-items: flex-start;
    gap: var(--auth-spacing-lg);
    transition: var(--auth-transition);
    padding: 0 var(--auth-spacing-sm);
}

    .auth-feature:hover {
        transform: translateX(8px);
    }

.auth-feature-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    border-radius: var(--auth-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), inset 0 0 12px rgba(255, 255, 255, 0.05);
    transition: var(--auth-transition);
}

.auth-feature:hover .auth-feature-icon {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.1));
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15), inset 0 0 15px rgba(255, 255, 255, 0.1);
}

.auth-feature-icon i {
    font-size: 1.25rem;
    color: white;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.auth-feature-text {
    flex: 1;
    min-width: 0;
}

.auth-feature-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
    margin: 0 0 0.375rem 0;
    letter-spacing: -0.02em;
    word-wrap: break-word;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.auth-feature-desc {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.5;
    word-wrap: break-word;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* ====== FORM SECTION ====== */
.auth-form-section {
    padding: var(--auth-spacing-3xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgb(var(--auth-white));
}

.auth-form-header {
    margin-bottom: var(--auth-spacing-2xl);
    text-align: center;
}

.auth-form-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: rgb(var(--auth-gray-900));
    margin: 0 0 var(--auth-spacing-sm) 0;
    letter-spacing: -0.025em;
}

.auth-form-subtitle {
    font-size: 1rem;
    color: rgb(var(--auth-gray-600));
    margin: 0;
    font-weight: 400;
    line-height: 1.4;
}

/* ====== FORM ELEMENTS ====== */
.auth-form-group {
    margin-bottom: var(--auth-spacing-xl);
    position: relative;
}

.auth-form-label {
    display: flex;
    align-items: center;
    gap: var(--auth-spacing-sm);
    font-size: 0.875rem;
    font-weight: 600;
    color: rgb(var(--auth-gray-700));
    margin-bottom: var(--auth-spacing-sm);
    letter-spacing: -0.01em;
}

    .auth-form-label i {
        font-size: 0.875rem;
        color: rgb(var(--auth-primary));
        width: 1rem;
        text-align: center;
        flex-shrink: 0;
    }

    .auth-form-label span {
        word-wrap: break-word;
    }

.auth-form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid rgb(var(--auth-gray-200));
    border-radius: var(--auth-radius-md);
    font-size: 1rem;
    color: rgb(var(--auth-gray-900));
    background: rgb(var(--auth-white));
    transition: var(--auth-transition);
    line-height: 1.5;
    outline: none;
    position: relative;
}

    .auth-form-input:focus {
        border-color: rgb(var(--auth-primary));
        box-shadow: 0 0 0 3px rgba(var(--auth-primary), 0.1);
    }

    .auth-form-input::placeholder {
        color: rgb(var(--auth-gray-400));
        font-weight: 400;
    }

    .auth-form-input:disabled {
        background: rgb(var(--auth-gray-50));
        color: rgb(var(--auth-gray-500));
        cursor: not-allowed;
    }

/* Password wrapper for toggle button */
.auth-password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

    .auth-password-wrapper .auth-form-input {
        padding-right: 3rem;
    }

/* Password Toggle Button */
.auth-password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgb(var(--auth-gray-400));
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--auth-radius-sm);
    transition: var(--auth-transition);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .auth-password-toggle:hover {
        color: rgb(var(--auth-primary));
        background: rgba(var(--auth-primary), 0.05);
    }

    .auth-password-toggle:focus {
        outline: 2px solid rgba(var(--auth-primary), 0.2);
        outline-offset: 2px;
    }

    .auth-password-toggle i {
        font-size: 1rem;
    }

/* ====== ACCOUNT TYPE SELECTION ====== */
.auth-account-type {
    margin-bottom: var(--auth-spacing-xl);
}

.auth-account-options {
    display: flex;
    flex-direction: column;
    gap: var(--auth-spacing-sm);
    margin-top: var(--auth-spacing-sm);
}

.auth-radio-option {
    display: flex;
    align-items: center;
    padding: var(--auth-spacing-md) var(--auth-spacing-lg);
    border: 2px solid rgb(var(--auth-gray-200));
    border-radius: var(--auth-radius-md);
    cursor: pointer;
    transition: var(--auth-transition);
}

    .auth-radio-option:hover {
        border-color: rgb(var(--auth-primary));
        background: rgba(var(--auth-primary), 0.02);
    }

    .auth-radio-option input[type="radio"] {
        margin-right: var(--auth-spacing-md);
        flex-shrink: 0;
    }

        .auth-radio-option input[type="radio"]:checked + .radio-label {
            color: rgb(var(--auth-primary));
            font-weight: 600;
        }

        .auth-radio-option input[type="radio"]:checked ~ * {
            color: rgb(var(--auth-primary));
        }

.radio-label {
    display: flex;
    align-items: center;
    gap: var(--auth-spacing-sm);
    font-size: 0.875rem;
    color: rgb(var(--auth-gray-700));
}

    .radio-label i {
        font-size: 1rem;
        flex-shrink: 0;
    }

/* ====== ACCOUNT INFO BOX ====== */
.auth-account-info {
    margin-bottom: var(--auth-spacing-xl);
}

.auth-info-box {
    background: rgba(var(--auth-primary), 0.05);
    border: 1px solid rgba(var(--auth-primary), 0.15);
    border-radius: var(--auth-radius-md);
    padding: var(--auth-spacing-lg);
}

    .auth-info-box > i {
        color: rgb(var(--auth-primary));
        font-size: 1.125rem;
        margin-bottom: var(--auth-spacing-sm);
        display: block;
    }

    .auth-info-box p {
        color: rgb(var(--auth-gray-700));
        font-size: 0.875rem;
        font-weight: 600;
        margin: 0 0 var(--auth-spacing-md) 0;
    }

    .auth-info-box ul {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: var(--auth-spacing-sm);
    }

        .auth-info-box ul li {
            display: flex;
            align-items: flex-start;
            gap: var(--auth-spacing-sm);
            font-size: 0.875rem;
            color: rgb(var(--auth-gray-600));
            line-height: 1.4;
        }

            .auth-info-box ul li i {
                color: rgb(var(--auth-success));
                font-size: 0.875rem;
                flex-shrink: 0;
                margin-top: 0.125rem;
            }

/* ====== PASSWORD REQUIREMENTS ====== */
.auth-password-requirements {
    margin-top: var(--auth-spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--auth-spacing-sm);
}

.auth-requirement {
    display: flex;
    align-items: center;
    gap: var(--auth-spacing-sm);
    font-size: 0.8125rem;
    color: rgb(var(--auth-gray-500));
    transition: var(--auth-transition);
}

    .auth-requirement i {
        font-size: 0.75rem;
        width: 0.75rem;
        opacity: 0.5;
        flex-shrink: 0;
    }

.auth-requirement-met {
    color: rgb(var(--auth-success)) !important;
}

    .auth-requirement-met i {
        opacity: 1;
        color: rgb(var(--auth-success));
    }

/* ====== CHECKBOX AND FORM CONTROLS ====== */
.auth-checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: var(--auth-spacing-md);
    margin-bottom: var(--auth-spacing-xl);
    cursor: pointer;
}

.auth-checkbox {
    width: 1.125rem;
    height: 1.125rem;
    border: 2px solid rgb(var(--auth-gray-300));
    border-radius: var(--auth-radius-sm);
    background: rgb(var(--auth-white));
    cursor: pointer;
    position: relative;
    transition: var(--auth-transition);
    flex-shrink: 0;
    margin: 0.125rem 0 0 0;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

    .auth-checkbox:checked {
        background: rgb(var(--auth-primary));
        border-color: rgb(var(--auth-primary));
    }

        .auth-checkbox:checked::after {
            content: '\f00c';
            font-family: 'Font Awesome 6 Pro', 'Font Awesome 6 Free';
            font-weight: 900;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: white;
            font-size: 0.625rem;
            line-height: 1;
        }

    .auth-checkbox:focus {
        outline: 2px solid rgba(var(--auth-primary), 0.2);
        outline-offset: 2px;
    }

    .auth-checkbox:hover {
        border-color: rgb(var(--auth-primary));
    }

.auth-checkbox-label {
    font-size: 0.875rem;
    color: rgb(var(--auth-gray-600));
    line-height: 1.4;
    cursor: pointer;
    flex: 1;
}

.auth-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--auth-spacing-xl);
    flex-wrap: wrap;
    gap: var(--auth-spacing-md);
}

/* ====== BUTTONS ====== */
.auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--auth-spacing-sm);
    padding: 0.875rem 1.5rem;
    border-radius: var(--auth-radius-md);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--auth-transition);
    white-space: nowrap;
    line-height: 1.25;
    min-height: 3rem;
    width: 100%;
    letter-spacing: -0.01em;
    position: relative;
    overflow: hidden;
}

    .auth-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none !important;
    }

    .auth-btn i {
        font-size: 0.875rem;
        transition: var(--auth-transition);
        flex-shrink: 0;
    }

.auth-btn-primary {
    background: linear-gradient(135deg, rgb(var(--auth-primary)), rgb(var(--auth-primary-dark)));
    color: white;
    border-color: rgb(var(--auth-primary));
    box-shadow: var(--auth-shadow-sm);
}

    .auth-btn-primary:hover:not(:disabled) {
        background: linear-gradient(135deg, rgb(var(--auth-primary-dark)), rgb(var(--auth-primary)));
        transform: translateY(-1px);
        box-shadow: var(--auth-shadow-lg);
    }

    .auth-btn-primary:active:not(:disabled) {
        transform: translateY(0);
        box-shadow: var(--auth-shadow-sm);
    }

.auth-btn-secondary {
    background: rgb(var(--auth-white));
    color: rgb(var(--auth-primary));
    border-color: rgb(var(--auth-gray-300));
    box-shadow: var(--auth-shadow-sm);
}

    .auth-btn-secondary:hover:not(:disabled) {
        background: rgb(var(--auth-gray-50));
        border-color: rgb(var(--auth-primary));
        transform: translateY(-1px);
        box-shadow: var(--auth-shadow-md);
    }

.auth-btn-loading {
    pointer-events: none;
}

    .auth-btn-loading i {
        animation: spin 1s linear infinite;
    }

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ====== ALERTS ====== */
.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: var(--auth-spacing-md);
    padding: 1rem 1.25rem;
    border-radius: var(--auth-radius-md);
    margin-bottom: var(--auth-spacing-xl);
    font-size: 0.875rem;
    line-height: 1.4;
    border: 1px solid;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-alert i {
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.auth-alert-success {
    background: rgb(var(--auth-success-light));
    border-color: rgb(var(--auth-success));
    color: rgb(var(--auth-success));
}

    .auth-alert-success i {
        color: rgb(var(--auth-success));
    }

.auth-alert-danger {
    background: rgb(var(--auth-danger-light));
    border-color: rgb(var(--auth-danger));
    color: rgb(var(--auth-danger));
}

    .auth-alert-danger i {
        color: rgb(var(--auth-danger));
    }

.auth-alert-warning {
    background: rgb(var(--auth-warning-light));
    border-color: rgb(var(--auth-warning));
    color: rgb(var(--auth-warning));
}

    .auth-alert-warning i {
        color: rgb(var(--auth-warning));
    }

.auth-alert-info {
    background: rgb(var(--auth-info-light));
    border-color: rgb(var(--auth-info));
    color: rgb(var(--auth-info));
}

    .auth-alert-info i {
        color: rgb(var(--auth-info));
    }

/* ====== FORM VALIDATION ====== */
.auth-form-error {
    display: block;
    color: rgb(var(--auth-danger));
    font-size: 0.8125rem;
    margin-top: var(--auth-spacing-sm);
    font-weight: 500;
}

.auth-form-input:invalid:not(:focus):not(:placeholder-shown) {
    border-color: rgb(var(--auth-danger));
}

.auth-form-input:valid:not(:focus):not(:placeholder-shown) {
    border-color: rgb(var(--auth-success));
}

/* ====== DIVIDER ====== */
.auth-divider {
    position: relative;
    margin: var(--auth-spacing-2xl) 0;
    text-align: center;
}

    .auth-divider::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 1px;
        background: rgb(var(--auth-gray-200));
    }

.auth-divider-text {
    background: rgb(var(--auth-white));
    padding: 0 var(--auth-spacing-lg);
    font-size: 0.875rem;
    color: rgb(var(--auth-gray-500));
    font-weight: 500;
    position: relative;
}

/* ====== LINKS ====== */
.auth-link {
    color: rgb(var(--auth-primary));
    text-decoration: none;
    font-weight: 600;
    transition: var(--auth-transition);
    border-radius: var(--auth-radius-sm);
    padding: 0.125rem 0.25rem;
    margin: -0.125rem -0.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
}

    .auth-link:hover {
        color: rgb(var(--auth-primary-dark));
        background: rgba(var(--auth-primary), 0.05);
    }

    .auth-link:focus {
        outline: 2px solid rgba(var(--auth-primary), 0.2);
        outline-offset: 2px;
    }

    .auth-link i {
        font-size: 0.75rem;
        color: rgb(var(--auth-primary));
        transition: var(--auth-transition);
        flex-shrink: 0;
    }

    .auth-link:hover i {
        color: rgb(var(--auth-primary-dark));
    }

    .auth-link span {
        word-wrap: break-word;
    }

/* ====== FOOTER INFO ====== */
.auth-footer-info {
    text-align: center;
    margin-top: var(--auth-spacing-xl);
}

.auth-info-text {
    display: inline-flex;
    align-items: center;
    gap: var(--auth-spacing-sm);
    font-size: 0.8125rem;
    color: rgb(var(--auth-gray-500));
    background: rgba(var(--auth-primary), 0.05);
    padding: var(--auth-spacing-sm) var(--auth-spacing-md);
    border-radius: var(--auth-radius-md);
    line-height: 1.4;
}

    .auth-info-text i {
        flex-shrink: 0;
        color: rgb(var(--auth-primary));
        font-size: 0.875rem;
    }

    .auth-info-text span {
        text-align: left;
    }

/* ====== RESPONSIVE DESIGN - IMPROVED MOBILE FLOW ====== */

/* Tablet Landscape */
@media (max-width: 1024px) {
    .auth-card {
        max-width: 900px;
    }

    .auth-brand {
        padding: var(--auth-spacing-2xl);
    }

    .auth-form-section {
        padding: var(--auth-spacing-2xl);
    }

    .auth-brand-title {
        font-size: 2rem;
    }

    .auth-form-title {
        font-size: 1.75rem;
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    .auth-page {
        padding: var(--auth-spacing-md);
        min-height: 100vh;
        align-items: stretch;
    }

    .auth-card {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: auto;
        min-height: auto;
    }

    .auth-brand {
        padding: var(--auth-spacing-2xl);
        text-align: center;
        align-items: center;
    }

    .auth-logo-container {
        margin-left: auto;
        margin-right: auto;
        width: 4.5rem;
        height: 4.5rem;
    }

    .auth-brand-title {
        font-size: 2.5rem;
    }

    .auth-brand-subtitle {
        font-size: 1.125rem;
        margin-bottom: var(--auth-spacing-2xl);
    }

    .auth-features {
        margin-top: var(--auth-spacing-xl);
        width: 100%;
        max-width: 320px;
        padding: var(--auth-spacing-lg);
    }

    .auth-feature-icon {
        width: 2.5rem;
        height: 2.5rem;
    }

        .auth-feature-icon i {
            font-size: 1.125rem;
        }

    .auth-feature-title {
        font-size: 1rem;
    }

    .auth-feature-desc {
        font-size: 0.875rem;
    }

    .auth-form-section {
        padding: var(--auth-spacing-2xl);
    }

    .auth-form-title {
        font-size: 1.5rem;
    }

    .auth-form-footer {
        flex-direction: column;
        align-items: stretch;
        gap: var(--auth-spacing-lg);
    }

    .auth-checkbox-group {
        order: 1;
    }

    .auth-link {
        order: 2;
        text-align: center;
        justify-content: center;
    }

    .auth-info-text {
        flex-direction: column;
        padding: var(--auth-spacing-md) var(--auth-spacing-lg);
        text-align: center;
    }

        .auth-info-text span {
            text-align: center;
        }
}

/* Large Mobile */
@media (max-width: 600px) {
    .auth-page {
        padding: var(--auth-spacing-sm);
    }

    .auth-brand {
        padding: var(--auth-spacing-xl);
    }

    .auth-form-section {
        padding: var(--auth-spacing-xl);
    }

    .auth-logo-container {
        width: 4rem;
        height: 4rem;
        margin-bottom: var(--auth-spacing-xl);
        padding: 0.625rem;
    }

    .auth-brand-title {
        font-size: 2rem;
    }

    .auth-brand-subtitle {
        font-size: 1rem;
        margin-bottom: var(--auth-spacing-xl);
    }

    .auth-features {
        padding: var(--auth-spacing-md);
        gap: var(--auth-spacing-lg);
    }

    .auth-feature-icon {
        width: 2.25rem;
        height: 2.25rem;
    }

        .auth-feature-icon i {
            font-size: 1rem;
        }

    .auth-feature-title {
        font-size: 0.9375rem;
    }

    .auth-feature-desc {
        font-size: 0.8125rem;
    }

    .auth-form-title {
        font-size: 1.375rem;
    }

    .auth-form-subtitle {
        font-size: 0.9375rem;
    }

    .auth-feature {
        gap: var(--auth-spacing-md);
    }

    .auth-form-input {
        padding: 0.75rem 1rem;
        font-size: 0.9375rem;
    }

    .auth-password-wrapper .auth-form-input {
        padding-right: 2.75rem;
    }

    .auth-password-toggle {
        right: 0.5rem;
        padding: 0.375rem;
    }

        .auth-password-toggle i {
            font-size: 0.875rem;
        }

    .auth-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9375rem;
        min-height: 2.75rem;
    }

    .auth-account-options {
        gap: var(--auth-spacing-sm);
    }

    .auth-radio-option {
        padding: var(--auth-spacing-sm) var(--auth-spacing-md);
    }

    .radio-label {
        font-size: 0.8125rem;
    }

        .radio-label i {
            font-size: 0.875rem;
        }
}

/* Small Mobile */
@media (max-width: 480px) {
    .auth-page {
        padding: var(--auth-spacing-xs);
        align-items: flex-start;
        padding-top: var(--auth-spacing-lg);
    }

    .auth-card {
        width: 100%;
        margin: 0;
        border-radius: var(--auth-radius-lg);
        box-shadow: var(--auth-shadow-md);
    }

    .auth-brand {
        padding: var(--auth-spacing-lg);
    }

    .auth-form-section {
        padding: var(--auth-spacing-lg);
    }

    .auth-form-header {
        margin-bottom: var(--auth-spacing-xl);
    }

    .auth-logo-container {
        width: 3.5rem;
        height: 3.5rem;
        padding: 0.5rem;
        margin-bottom: var(--auth-spacing-lg);
    }

    .auth-brand-title {
        font-size: 1.875rem;
    }

    .auth-brand-subtitle {
        font-size: 0.9375rem;
        margin-bottom: var(--auth-spacing-xl);
    }

    .auth-features {
        gap: var(--auth-spacing-lg);
        padding: var(--auth-spacing-md);
    }

    .auth-feature-icon {
        width: 2rem;
        height: 2rem;
    }

        .auth-feature-icon i {
            font-size: 0.9375rem;
        }

    .auth-feature-title {
        font-size: 0.9375rem;
    }

    .auth-feature-desc {
        font-size: 0.8125rem;
    }

    .auth-form-title {
        font-size: 1.25rem;
    }

    .auth-form-subtitle {
        font-size: 0.875rem;
    }

    .auth-form-label {
        font-size: 0.8125rem;
    }

        .auth-form-label i {
            font-size: 0.8125rem;
        }

    .auth-form-input {
        padding: 0.625rem 0.875rem;
        font-size: 0.875rem;
    }

    .auth-password-wrapper .auth-form-input {
        padding-right: 2.5rem;
    }

    .auth-password-toggle {
        right: 0.375rem;
        padding: 0.25rem;
    }

    .auth-btn {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
        min-height: 2.5rem;
    }

        .auth-btn i {
            font-size: 0.8125rem;
        }

    .auth-checkbox-group {
        gap: var(--auth-spacing-sm);
    }

    .auth-checkbox {
        width: 1rem;
        height: 1rem;
    }

        .auth-checkbox:checked::after {
            font-size: 0.5rem;
        }

    .auth-checkbox-label {
        font-size: 0.8125rem;
    }

    .auth-alert {
        padding: 0.875rem 1rem;
        font-size: 0.8125rem;
    }

    .auth-form-error {
        font-size: 0.75rem;
    }

    .auth-info-text {
        font-size: 0.75rem;
        padding: var(--auth-spacing-sm) var(--auth-spacing-md);
    }

        .auth-info-text i {
            font-size: 0.75rem;
        }

    .auth-password-requirements {
        gap: 0.375rem;
    }

    .auth-requirement {
        font-size: 0.75rem;
    }

        .auth-requirement i {
            font-size: 0.625rem;
        }

    .auth-divider-text {
        font-size: 0.8125rem;
        padding: 0 var(--auth-spacing-md);
    }
}

/* Extra Small Mobile (400px and below) - Enhanced */
@media (max-width: 400px) {
    .auth-page {
        padding: 0;
        align-items: stretch;
    }

    .auth-card {
        border-radius: 0;
        min-height: 100vh;
        grid-template-rows: auto 1fr;
        box-shadow: none;
        border: none;
    }

    .auth-brand {
        padding: var(--auth-spacing-lg) var(--auth-spacing-md);
        min-height: 200px;
        border-radius: 0;
    }

    .auth-form-section {
        padding: var(--auth-spacing-lg) var(--auth-spacing-md);
    }

    .auth-logo-container {
        width: 2.5rem;
        height: 2.5rem;
        margin-bottom: var(--auth-spacing-md);
        padding: 0.25rem;
    }

    .auth-brand-title {
        font-size: 1.5rem;
    }

    .auth-brand-subtitle {
        font-size: 0.875rem;
    }

    .auth-form-title {
        font-size: 1.125rem;
    }

    .auth-form-subtitle {
        font-size: 0.8125rem;
        line-height: 1.3;
    }

    .auth-features {
        display: none;
    }

    .auth-form-group {
        margin-bottom: var(--auth-spacing-lg);
    }

    .auth-form-label {
        font-size: 0.75rem;
    }

        .auth-form-label i {
            font-size: 0.75rem;
            width: 0.875rem;
        }

    .auth-form-input {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
        border-width: 1px;
    }

    .auth-password-wrapper .auth-form-input {
        padding-right: 2.25rem;
    }

    .auth-password-toggle {
        right: 0.25rem;
        padding: 0.25rem;
    }

        .auth-password-toggle i {
            font-size: 0.75rem;
        }

    .auth-btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
        min-height: 2.25rem;
    }

        .auth-btn i {
            font-size: 0.75rem;
        }

    .auth-divider {
        margin: var(--auth-spacing-xl) 0;
    }

    .auth-divider-text {
        font-size: 0.75rem;
    }

    .auth-checkbox {
        width: 0.875rem;
        height: 0.875rem;
        border-width: 1px;
    }

    .auth-checkbox-label {
        font-size: 0.75rem;
        line-height: 1.3;
    }

    .auth-alert {
        padding: 0.625rem 0.75rem;
        font-size: 0.75rem;
        gap: var(--auth-spacing-sm);
    }

        .auth-alert i {
            font-size: 0.75rem;
        }

    .auth-form-error {
        font-size: 0.6875rem;
        margin-top: 0.25rem;
    }

    .auth-info-text {
        font-size: 0.6875rem;
        padding: var(--auth-spacing-sm);
        gap: 0.25rem;
    }

        .auth-info-text i {
            font-size: 0.625rem;
        }

    .auth-account-type {
        margin-bottom: var(--auth-spacing-lg);
    }

    .auth-radio-option {
        padding: 0.375rem 0.5rem;
        border-width: 1px;
    }

        .auth-radio-option input[type="radio"] {
            margin-right: var(--auth-spacing-sm);
            width: 0.75rem;
            height: 0.75rem;
        }

    .radio-label {
        font-size: 0.75rem;
        gap: 0.25rem;
    }

        .radio-label i {
            font-size: 0.75rem;
        }

    .auth-account-info {
        margin-bottom: var(--auth-spacing-lg);
    }

    .auth-info-box {
        padding: var(--auth-spacing-md);
    }

        .auth-info-box > i {
            font-size: 0.875rem;
            margin-bottom: 0.25rem;
        }

        .auth-info-box p {
            font-size: 0.75rem;
            margin-bottom: var(--auth-spacing-sm);
        }

        .auth-info-box ul {
            gap: 0.25rem;
        }

            .auth-info-box ul li {
                font-size: 0.6875rem;
                gap: 0.25rem;
            }

                .auth-info-box ul li i {
                    font-size: 0.625rem;
                }

    .auth-password-requirements {
        margin-top: var(--auth-spacing-sm);
        gap: 0.25rem;
    }

    .auth-requirement {
        font-size: 0.6875rem;
        gap: 0.25rem;
    }

        .auth-requirement i {
            font-size: 0.5rem;
            width: 0.625rem;
        }

    .auth-form-footer {
        gap: var(--auth-spacing-md);
        margin-bottom: var(--auth-spacing-lg);
    }

    .auth-link {
        font-size: 0.75rem;
        padding: 0;
        margin: 0;
    }

        .auth-link i {
            font-size: 0.625rem;
        }
}

/* ====== DARK THEME OVERRIDES - Keep existing dark theme styles ====== */
[data-theme="atriver-dark"] .auth-page {
    background: linear-gradient(135deg, rgba(var(--auth-primary), 0.05) 0%, rgba(var(--auth-primary-light), 0.08) 50%, rgb(var(--auth-gray-50)) 100%);
}

[data-theme="atriver-dark"] .auth-card {
    background: rgb(var(--auth-white));
    border-color: rgba(var(--auth-gray-200), 0.3);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

[data-theme="atriver-dark"] .auth-form-section {
    background: rgb(var(--auth-white));
}

[data-theme="atriver-dark"] .auth-form-title {
    color: rgb(var(--auth-gray-900));
}

[data-theme="atriver-dark"] .auth-form-subtitle {
    color: rgb(var(--auth-gray-600));
}

[data-theme="atriver-dark"] .auth-form-label {
    color: rgb(var(--auth-gray-700));
}

[data-theme="atriver-dark"] .auth-form-input {
    background: rgb(var(--auth-white));
    border-color: rgb(var(--auth-gray-200));
    color: rgb(var(--auth-gray-900));
}

    [data-theme="atriver-dark"] .auth-form-input:focus {
        border-color: rgb(var(--auth-primary));
        box-shadow: 0 0 0 3px rgba(var(--auth-primary), 0.1);
    }

    [data-theme="atriver-dark"] .auth-form-input::placeholder {
        color: rgb(var(--auth-gray-400));
    }

    [data-theme="atriver-dark"] .auth-form-input:disabled {
        background: rgb(var(--auth-gray-50));
        color: rgb(var(--auth-gray-500));
    }

[data-theme="atriver-dark"] .auth-password-toggle {
    color: rgb(var(--auth-gray-400));
}

    [data-theme="atriver-dark"] .auth-password-toggle:hover {
        color: rgb(var(--auth-primary));
        background: rgba(var(--auth-primary), 0.05);
    }

[data-theme="atriver-dark"] .auth-checkbox {
    border-color: rgb(var(--auth-gray-300));
    background: rgb(var(--auth-white));
}

    [data-theme="atriver-dark"] .auth-checkbox:checked {
        background: rgb(var(--auth-primary));
        border-color: rgb(var(--auth-primary));
    }

    [data-theme="atriver-dark"] .auth-checkbox:hover {
        border-color: rgb(var(--auth-primary));
    }

[data-theme="atriver-dark"] .auth-checkbox-label {
    color: rgb(var(--auth-gray-600));
}

[data-theme="atriver-dark"] .auth-btn-secondary {
    background: rgb(var(--auth-white));
    color: rgb(var(--auth-primary));
    border-color: rgb(var(--auth-gray-300));
}

    [data-theme="atriver-dark"] .auth-btn-secondary:hover:not(:disabled) {
        background: rgb(var(--auth-gray-50));
        border-color: rgb(var(--auth-primary));
    }

[data-theme="atriver-dark"] .auth-divider::before {
    background: rgb(var(--auth-gray-200));
}

[data-theme="atriver-dark"] .auth-divider-text {
    background: rgb(var(--auth-white));
    color: rgb(var(--auth-gray-500));
}

[data-theme="atriver-dark"] .auth-requirement {
    color: rgb(var(--auth-gray-500));
}

[data-theme="atriver-dark"] .auth-requirement-met {
    color: rgb(var(--auth-success)) !important;
}

[data-theme="atriver-dark"] .auth-info-text {
    color: rgb(var(--auth-gray-600));
    background: rgba(var(--auth-primary), 0.08);
}

    [data-theme="atriver-dark"] .auth-info-text i {
        color: rgb(var(--auth-primary));
    }

[data-theme="atriver-dark"] .auth-radio-option {
    border-color: rgb(var(--auth-gray-200));
}

    [data-theme="atriver-dark"] .auth-radio-option:hover {
        border-color: rgb(var(--auth-primary));
        background: rgba(var(--auth-primary), 0.03);
    }

[data-theme="atriver-dark"] .radio-label {
    color: rgb(var(--auth-gray-700));
}

[data-theme="atriver-dark"] .auth-radio-option input[type="radio"]:checked + .radio-label {
    color: rgb(var(--auth-primary));
}

[data-theme="atriver-dark"] .auth-info-box {
    background: rgba(var(--auth-primary), 0.08);
    border-color: rgba(var(--auth-primary), 0.2);
}

    [data-theme="atriver-dark"] .auth-info-box > i {
        color: rgb(var(--auth-primary));
    }

    [data-theme="atriver-dark"] .auth-info-box p {
        color: rgb(var(--auth-gray-700));
    }

    [data-theme="atriver-dark"] .auth-info-box ul li {
        color: rgb(var(--auth-gray-600));
    }

        [data-theme="atriver-dark"] .auth-info-box ul li i {
            color: rgb(var(--auth-success));
        }

/* ====== ACCESSIBILITY ====== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .auth-brand::before {
        animation: none;
    }

    .auth-btn-loading i {
        animation: none;
    }
}

@media (prefers-contrast: high) {
    .auth-form-input {
        border-width: 3px;
    }

    .auth-btn {
        border-width: 3px;
    }

    .auth-checkbox {
        border-width: 3px;
    }
}

/* ====== PRINT STYLES ====== */
@media print {
    .auth-page {
        background: white;
        padding: 0;
    }

    .auth-card {
        box-shadow: none;
        border: 1px solid #000;
        grid-template-columns: 1fr;
    }

    .auth-brand {
        background: #f5f5f5;
        color: #000;
    }

        .auth-brand::before {
            display: none;
        }

    .auth-logo-container {
        background: #ddd;
    }

    .auth-features {
        display: none;
    }

    .auth-btn {
        border: 2px solid #000;
        background: white;
        color: #000;
    }
}
