/* assets/css/auth.css */
:root {
    --auth-primary: #0ea5e9;
    --auth-bg: #f8fafc;
    --auth-card-bg: rgba(255, 255, 255, 0.9);
    --auth-border: #e2e8f0;
    --auth-text: #1e293b;
    --auth-text-muted: #64748b;
    --auth-radius: 20px;
    --auth-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.auth-page {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--auth-bg);
    min-height: 100vh;
    display: flex;
    overflow: hidden;
}

.auth-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* Split Layout */
.auth-visual {
    flex: 1.2;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.auth-visual video,
.auth-visual img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    object-fit: cover;
}

.auth-visual-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.4) 0%, rgba(3, 105, 161, 0.7) 100%);
    z-index: 2;
}

.auth-visual-content {
    position: relative;
    z-index: 3;
    padding: 60px;
    text-align: center;
    max-width: 600px;
    animation: fadeInScale 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-visual-content h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.auth-visual-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.auth-form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: white;
    z-index: 10;
}

.auth-card {
    width: 100%;
    max-width: 450px;
    animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animations */
@keyframes slideInUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeInScale {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Form Styles */
.form-header {
    margin-bottom: 32px;
}

.form-header .logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--auth-primary);
    text-decoration: none;
    margin-bottom: 24px;
}

.form-header h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--auth-text);
    margin-bottom: 8px;
}

.form-header p {
    color: var(--auth-text-muted);
}

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

.form-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--auth-text);
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--auth-text-muted);
}

.form-input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    border: 2px solid var(--auth-border);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s;
    outline: none;
}

.form-input:focus {
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

.btn-auth {
    width: 100%;
    padding: 14px;
    background: var(--auth-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-auth:hover {
    background: #0284c7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
}

/* Layout Toggles */
.login-layout .auth-visual { order: 1; }
.login-layout .auth-form-side { order: 2; }

.signup-layout .auth-visual { order: 2; }
.signup-layout .auth-form-side { order: 1; }

/* OTP Specific */
.otp-container {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 30px 0;
}

.otp-input {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 800;
    border: 2px solid var(--auth-border);
    border-radius: 12px;
    transition: all 0.2s;
}

.otp-input:focus {
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
    outline: none;
}

/* Mobile Responsive Engine */
@media screen and (max-width: 900px) {
    .auth-visual {
        display: none !important;
    }
    .auth-form-side {
        padding: 20px !important;
    }
}

@media screen and (max-width: 600px) {
    .auth-page, .auth-container {
        padding: 10px !important;
        box-sizing: border-box;
    }
    .auth-form-side {
        padding: 10px !important;
        background: transparent !important; /* To let container gradient show if centered */
    }
    .auth-card {
        padding: 25px 20px !important;
        border-radius: 16px !important;
        box-shadow: 0 10px 25px rgba(0,0,0,0.08) !important;
    }
    .form-header h1, h2 {
        font-size: 1.6rem !important;
    }
    .form-header .logo, .logo {
        font-size: 1.5rem !important;
    }
    .form-header .logo img, .logo img {
        height: 36px !important;
    }
    .btn-auth {
        padding: 14px !important;
        font-size: 0.95rem !important;
    }
    /* Stack grid elements vertically on small screens */
    .signup-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    /* Fix OTP Input Sizes for Mobile */
    .otp-container {
        gap: 8px !important;
    }
    .otp-input {
        width: 40px !important;
        height: 52px !important;
        font-size: 1.3rem !important;
        border-radius: 8px !important;
    }
}

@media screen and (max-width: 400px) {
    .otp-input {
        width: 35px !important;
        height: 45px !important;
        font-size: 1.1rem !important;
    }
    .auth-card {
        padding: 20px 15px !important;
    }
}
