/* Auth Pages CSS (Login, Register, Logged Out) */

/* Premium Split Background - Dark Neutral */
.auth-hero {
    background-color: #f0f2f5;
    padding: 60px 0;
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    max-width: 900px;
    /* Wider for split layout */
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* Split Card Layout */
.auth-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    /* Deep premium shadow */
    overflow: hidden;
    display: flex;
    /* Activate Split Layout */
    border: 1px solid rgba(0, 0, 0, 0.03);
}

/* Left Panel: Brand / Visuals */
.auth-branding {
    flex: 1;
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    color: #fff;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Decorative background elements */
.auth-branding::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 107, 0, 0.2) 0%, rgba(255, 107, 0, 0) 70%);
    border-radius: 50%;
}

.auth-branding::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
}

.brand-welcome h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
    background: linear-gradient(90deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 2;
}

.brand-welcome p {
    font-size: 16px;
    opacity: 0.7;
    line-height: 1.6;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.brand-features {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 2;
}

.brand-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 14px;
    opacity: 0.9;
}

.brand-features i {
    color: #ff6b00;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px;
    border-radius: 50%;
}

/* Right Panel: Form */
.auth-form-wrapper {
    flex: 1.2;
    padding: 50px 40px;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-header-mobile {
    display: none;
    /* Hidden on desktop */
}

.badge-premium {
    display: inline-block;
    background: rgba(255, 107, 0, 0.08);
    color: #ff6b00;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    color: #333;
    transition: all 0.2s;
    background: #fafafa;
}

.form-control:focus {
    outline: none;
    border-color: #ff6b00;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.08);
    /* Softer shadow */
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

/* Hide hints by default */
.form-help {
    display: none;
    font-size: 11px;
    color: #888;
    margin-top: 0;
}

/* Show hints only when input is invalid */
.form-control.is-invalid~.form-help {
    display: block;
    margin-top: 4px;
    animation: fadeIn 0.3s ease-out;
}

/* Actions */
.btn-submit {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-top: 30px;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    background: #ff6b00;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 10px rgba(255, 107, 0, 0.2);
}

.btn-submit:hover {
    background: #e65c00;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 107, 0, 0.3);
}

/* Extras */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #ff6b00;
}

.checkbox-wrapper label {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
}

.div-footer {
    margin-top: 30px;
    text-align: center;
    font-size: 14px;
    color: #666;
}

.div-footer a {
    color: #ff6b00;
    text-decoration: none;
    font-weight: 600;
    margin-left: 5px;
}

.div-footer a:hover {
    text-decoration: underline;
}

/* Alerts */
.alert-error {
    background: #fff5f5;
    border-left: 4px solid #cc0000;
    color: #cc0000;
    padding: 15px;
    border-radius: 4px;
    /* Less rounded for alerts */
    font-size: 14px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-error ul {
    margin: 5px 0 0 15px;
    padding: 0;
}


/* Responsive */
@media (max-width: 900px) {
    .auth-card {
        flex-direction: column;
    }

    .auth-branding {
        padding: 40px;
        text-align: center;
        /* Make it smaller on mobile */
        min-height: auto;
    }

    .brand-features {
        display: none;
        /* Hide features on mobile to save space */
    }

    .brand-welcome h2 {
        font-size: 24px;
    }

    .auth-form-wrapper {
        padding: 40px 20px;
    }
}