:root {
    --brand-primary: #4F46E5;
    --brand-secondary: #3730A3;
    --accent: #10B981;
    --bg-light: #F8FAFC;
    --bg-white: #FFFFFF;
    --text-dark: #0F172A;
    --text-gray: #475569;
    --text-light: #94A3B8;
    --border-color: #E2E8F0;
    --input-bg: #F1F5F9;
    --error: #EF4444;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-white);
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    overflow: hidden;
}

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

/* Left Side: Visual */
.auth-visual {
    flex: 1.2;
    background: linear-gradient(135deg, #0A192F 0%, #112240 100%);
    position: relative;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    overflow: hidden;
}

/* Abstract Background Elements */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.6;
}
.blob-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: #4F46E5;
}
.blob-2 {
    bottom: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: #0D9488;
}
.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
}

.visual-inner {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.brand-logo {
    margin-bottom: 3rem;
}
.logo-white {
    max-width: 160px;
    filter: brightness(0) invert(1);
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(16, 185, 129, 0.15);
    color: #34D399;
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.title {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #ffffff, #94A3B8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #CBD5E1;
    margin-bottom: 3rem;
    font-weight: 300;
}

/* Stat Cards */
.stats-preview {
    display: flex;
    gap: 1.5rem;
}
.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 200px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}
.stat-icon {
    width: 48px;
    height: 48px;
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}
.stat-info h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.2rem;
}
.stat-info p {
    font-size: 0.85rem;
    color: #94A3B8;
}

/* Right Side: Form */
.auth-form-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--bg-white);
    padding: 2rem;
    max-width: 650px;
}

.form-container {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.mobile-logo {
    display: none;
    margin-bottom: 2rem;
    text-align: left;
}
.mobile-logo img {
    max-width: 140px;
}

.form-header {
    margin-bottom: 2.5rem;
}
.form-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}
.form-header p {
    color: var(--text-gray);
    font-size: 1rem;
}

/* Alert */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.alert-error {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #B91C1C;
}

/* Form Styles */
.input-group {
    margin-bottom: 1.5rem;
}
.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.input-wrapper i.fa-regular,
.input-wrapper i.fa-solid {
    position: absolute;
    left: 1rem;
    color: var(--text-light);
    font-size: 1.1rem;
    transition: color 0.3s;
}
.input-wrapper input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.8rem;
    background: var(--input-bg);
    border: 1px solid transparent;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: all 0.2s;
}
.input-wrapper input:focus {
    outline: none;
    background: var(--bg-white);
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}
.input-wrapper input:focus + i,
.input-wrapper input:not(:placeholder-shown) + i {
    color: var(--brand-primary);
}
.input-wrapper input.is-invalid {
    border-color: var(--error);
    background: #FEF2F2;
}

.btn-toggle-pass {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}
.btn-toggle-pass:hover {
    color: var(--brand-primary);
}

.error-text {
    display: block;
    color: var(--error);
    font-size: 0.8rem;
    margin-top: 0.4rem;
    font-weight: 500;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

/* Custom Checkbox */
.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    gap: 0.5rem;
}
.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}
.checkmark {
    height: 18px;
    width: 18px;
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.checkbox-container input:checked ~ .checkmark {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
}
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 4px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}
.checkbox-text {
    font-size: 0.9rem;
    color: var(--text-gray);
    font-weight: 500;
}

.forgot-link {
    font-size: 0.9rem;
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 600;
}
.forgot-link:hover {
    text-decoration: underline;
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 1rem;
    background: var(--brand-primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2);
}
.btn-primary:hover {
    background: var(--brand-secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px -1px rgba(79, 70, 229, 0.3);
}

.form-footer {
    margin-top: 3rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Responsive */
@media (max-width: 992px) {
    .auth-visual {
        display: none;
    }
    .auth-wrapper {
        justify-content: center;
        background: var(--bg-light);
    }
    .auth-form-area {
        max-width: 100%;
        width: 100%;
        background: transparent;
        padding: 2rem 1.5rem;
        align-items: center;
    }
    .form-container {
        background: var(--bg-white);
        padding: 3rem 2rem;
        border-radius: 20px;
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
        border: 1px solid var(--border-color);
        max-width: 480px;
    }
    .mobile-logo {
        display: block;
        text-align: center;
    }
    .mobile-logo img {
        margin: 0 auto;
    }
    body {
        overflow: auto;
    }
}

@media (max-width: 576px) {
    .form-container {
        padding: 2rem 1.5rem;
        border-radius: 16px;
        border: none;
        box-shadow: none;
        background: transparent;
    }
    .auth-form-area {
        background: var(--bg-white);
        padding: 1rem;
    }
    .title {
        font-size: 2.5rem;
    }
}