/* 
 * Auth Pages - Premium Design
 * Split-screen layout + Glassmorphism + Animations
 */

.auth-page-body {
    background-color: var(--bg-color);
    overflow: hidden; /* Prevent scrollbars during animations */
}

.split-screen-container {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

/* LEFT SIDE - BRANDING */
.auth-branding-side {
    flex: 1;
    background: linear-gradient(135deg, #1a1a3a 0%, #0d0d26 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    padding: 40px;
    z-index: 1;
}

.auth-branding-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: -1;
}

.branding-content {
    text-align: center;
    max-width: 500px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease-out forwards 0.2s;
}

.branding-logo {
    height: 100px; /* Reduced to fit better */
    margin-bottom: 20px;
}

.branding-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #ffffff, #a2d45e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.branding-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    line-height: 1.5;
}

.lottie-container {
    width: 100%;
    max-width: 450px;
    height: 400px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    padding: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    margin-top: 20px;
}

/* RIGHT SIDE - FORM */
.auth-form-side {
    flex: 1;
    background-color: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    max-width: 650px; /* Limit width on large screens */
}

.auth-form-container {
    width: 100%;
    max-width: 440px;
    opacity: 0;
    transform: translateX(20px);
    animation: fadeLeft 0.8s ease-out forwards 0.4s;
}

.auth-header {
    margin-bottom: 35px;
}

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

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

.auth-header a {
    color: var(--accent-color);
    font-weight: 600;
}

/* FORM STYLING */
.premium-form .form-group {
    margin-bottom: 25px;
    position: relative;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    transition: color 0.3s;
}

.premium-input {
    width: 100%;
    padding: 14px 16px 14px 45px; /* Space for icon */
    font-size: 1rem;
    background-color: transparent;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    color: var(--text-color);
}

.premium-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(162, 212, 94, 0.1);
}

.premium-input:focus + .input-icon {
    color: var(--accent-color);
}

.premium-input.error {
    border-color: var(--error-color);
    background-color: rgba(220, 53, 69, 0.02);
}

.form-label-floating {
    position: absolute;
    left: 45px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--bg-secondary);
    padding: 0 5px;
    color: var(--text-muted);
    pointer-events: none;
    transition: all 0.2s;
    font-size: 1rem;
}

/* Active state for floating label */
.premium-input:focus ~ .form-label-floating,
.premium-input:not(:placeholder-shown) ~ .form-label-floating {
    top: 0;
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 600;
}

.premium-input.error ~ .form-label-floating {
    color: var(--error-color);
}

.error-msg {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--error-color);
    font-size: 0.8rem;
    margin-top: 6px;
    font-weight: 500;
    animation: shake 0.4s ease-in-out;
}

.btn-premium {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #8bc34a 100%);
    color: #1a1a3a;
    font-weight: 700;
    font-size: 1.05rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 10px 20px -10px rgba(162, 212, 94, 0.5);
    margin-top: 10px;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -10px rgba(162, 212, 94, 0.6);
}

.btn-premium:active {
    transform: translateY(0);
}

/* ANIMATIONS */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* MEDIA QUERIES */
@media (max-width: 992px) {
    .auth-branding-side {
        display: none; /* Hide branding on smaller screens */
    }
    
    .auth-form-side {
        max-width: 100%;
        background-color: var(--bg-color);
    }
    
    .auth-form-container {
        max-width: 480px;
        background-color: var(--card-bg);
        padding: 40px;
        border-radius: 20px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.05);
        border: 1px solid var(--border-color);
    }
}
