/* ============================================================
    Auth Page — Modern Split-Screen Layout
    Left: Branding  |  Right: Form
   ============================================================ */

/* ---- Split Container ---- */
.auth-split {
    display: flex;
    min-height: calc(100vh - 160px);
    border-radius: 20px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    max-width: 960px;
    margin: 20px auto;
}

/* ---- LEFT: Branding Panel ---- */
.auth-brand-panel {
    flex: 0 0 420px;
    color: #2d3748;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-right: 1px solid #e8ecf1;
}

.auth-brand-content {
    position: relative;
    z-index: 1;
    padding: 40px 36px;
    text-align: center;
}

.auth-brand-logo {
    width: 160px;
    margin-bottom: 28px;
}

.auth-brand-text {
    margin-bottom: 32px;
}

.auth-brand-text h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.auth-brand-text p {
    font-size: 0.92rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

/* Features list */
.auth-brand-features {
    text-align: left;
    margin-top: 8px;
}

.auth-feature {
    display: flex;
    align-items: center;
    padding: 8px 0;
    gap: 12px;
    font-size: 0.88rem;
    color: #475569;
    transition: color 0.2s;
}

.auth-feature:hover {
    color: #1e293b;
}

.auth-feature i {
    width: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--bs-primary);
}

/* ---- RIGHT: Form Panel ---- */
.auth-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.auth-form-inner {
    width: 100%;
    max-width: 400px;
    position: relative;
}

/* ---- Steps ---- */
.auth-step {
    position: relative;
    animation: authFadeIn 0.3s ease;
}

@keyframes authFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- Email Badge ---- */
.auth-email-badge {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    background: #f0f4ff;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.auth-email-badge:hover {
    background: #e4ebfc;
    border-color: var(--bs-primary);
}

.auth-email-badge span {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.auth-email-badge .fa-pen {
    opacity: 0.4;
    transition: opacity 0.2s ease;
}

.auth-email-badge:hover .fa-pen {
    opacity: 1;
}

/* ---- Form Styling ---- */
#contLogin .form-floating>.form-control {
    border-radius: 10px !important;
    border: 1px solid #e0e0e0;
    background: #fafafa;
    transition: all 0.3s ease;
}

#contLogin .form-floating>.form-control:focus {
    background: #fff;
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.12) !important;
}

#contLogin .form-floating>.form-control:focus~label,
#contLogin .form-floating>.form-control:not(:placeholder-shown)~label {
    color: var(--bs-primary) !important;
    transform: scale(0.85) translateY(-0.75rem) translateX(0.15rem) !important;
    top: 0 !important;
}

/* ---- Buttons ---- */
#contLogin .btn {
    border-radius: 10px !important;
    transition: all 0.3s ease;
}

#contLogin .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

#contLogin .btn-primary {
    letter-spacing: 0.3px;
    font-size: 0.95rem;
}

/* ---- Password Requirements ---- */
#contLogin .password-requirements-info {
    font-size: 0.8rem !important;
}

/* ---- Checkbox ---- */
#contLogin .form-check-input:checked {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

/* ---- Links ---- */
#contLogin a.text-muted {
    text-decoration: none;
    transition: color 0.2s ease;
}

#contLogin a.text-muted:hover {
    color: var(--bs-primary) !important;
    text-decoration: underline;
}

/* ============================================================
   Responsive
   ============================================================ */

/* Tablet: Branding panel schmaler */
@media (max-width: 991px) {
    .auth-split {
        border-radius: 16px;
        margin: 12px;
    }

    .auth-brand-panel {
        flex: 0 0 300px;
    }

    .auth-brand-content {
        padding: 30px 24px;
    }

    .auth-brand-logo {
        width: 130px;
        margin-bottom: 20px;
    }

    .auth-brand-text h2 {
        font-size: 1.25rem;
    }

    .auth-form-panel {
        padding: 30px 24px;
    }
}

/* Mobile: Stacked Layout */
@media (max-width: 767px) {
    .auth-split {
        flex-direction: column;
        min-height: auto;
        border-radius: 0;
        box-shadow: none;
        margin: 0;
    }

    .auth-brand-panel {
        flex: none;
        padding: 28px 20px 20px;
    }

    .auth-brand-content {
        padding: 0;
    }

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

    .auth-brand-text h2 {
        font-size: 1.1rem;
    }

    .auth-brand-text p {
        font-size: 0.84rem;
    }

    .auth-brand-text {
        margin-bottom: 16px;
    }

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

    .auth-form-panel {
        padding: 24px 16px;
    }

    .auth-form-inner {
        max-width: 100%;
    }

    #contLogin h4 {
        font-size: 1.05rem !important;
    }

    #contLogin .btn {
        font-size: 0.88rem !important;
    }
}

/* Large Desktop */
@media (min-width: 1200px) {
    .auth-split {
        max-width: 1040px;
    }

    .auth-brand-panel {
        flex: 0 0 460px;
    }

    .auth-brand-content {
        padding: 48px 44px;
    }

    .auth-brand-text h2 {
        font-size: 1.65rem;
    }

    .auth-form-panel {
        padding: 48px;
    }
}