/* Auth Page Styles */
:root {
    --auth-radius: 12px;
}

/* Remove body styling that breaks layout */
/* .auth-container is now a child of the main container */

.auth-container {
    width: 100%;
    max-width: 1000px;
    /* Slightly smaller for better focus */
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    min-height: 600px;
    margin: 0 auto;
    /* Center horizontally */
}

/* Left Side - Form */
.auth-left {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.auth-header {
    margin-bottom: 2rem;
}

.auth-logo {
    height: 40px;
    margin-bottom: 1.5rem;
}

.auth-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--ke-text-color);
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: #6c757d;
    font-size: 1rem;
}

/* Form Elements */
.form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ke-text-color);
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    padding: 0.8rem 1rem;
    border-radius: var(--auth-radius);
    border: 2px solid #e2e8f0;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fff;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--ke-primary);
    box-shadow: 0 0 0 4px rgba(var(--ke-primary-rgb), 0.1);
    /* Fallback or need to define RGB var */
}

.input-group-text {
    background: transparent;
    border: 2px solid #e2e8f0;
    border-right: none;
    border-radius: var(--auth-radius) 0 0 var(--auth-radius);
}

.btn-auth {
    padding: 1rem;
    border-radius: var(--auth-radius);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    transition: transform 0.2s;
    background: var(--ke-gradient);
    border: none;
    color: white;
    width: 100%;
    margin-top: 1rem;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    color: white;
}

.btn-auth:disabled {
    opacity: 0.7;
    transform: none;
}

/* Right Side - Branding */
.auth-right {
    flex: 1;
    background: var(--ke-gradient);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    padding: 3rem;
    overflow: hidden;
}

.auth-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../branding/auth-bg-pattern.svg') center/cover;
    opacity: 0.1;
}

.branding-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 400px;
}

.branding-img {
    width: 100%;
    max-width: 350px;
    margin-bottom: 2rem;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
    border-radius: 12px;
}

.branding-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.branding-text {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.d-none {
    display: none !important;
}

/* Responsive */
@media (max-width: 992px) {
    .auth-right {
        display: none;
    }

    .auth-container {
        max-width: 500px;
        min-height: auto;
    }

    .auth-left {
        padding: 2rem;
    }
}