/* Authentication Pages Styles */

.auth-section {
    min-height: calc(100vh - 84px);
    padding-top: 84px; /* Account for fixed header */
    padding-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Prevent auth panels from touching fixed header */
.auth-container {
    margin-top: 36px;
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 1200px;
    min-height: 0;
    margin: 0 auto;
    align-items: stretch;
    gap: 0; /* No gap between sections */
}

/* Left Side - Form */
.auth-form-side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 48px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px 0 0 20px; /* Only left corners rounded */
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-right: none; /* Remove right border for seamless connection */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    align-self: stretch;
}

.auth-form-card {
    width: 100%;
    max-width: 420px;
    background: transparent;
    border-radius: 0;
    padding: 24px 0;
    border: none;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    text-align: center;
    letter-spacing: -0.02em;
}

.auth-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin-bottom: 28px;
    font-weight: 400;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-section--signup .auth-form {
    gap: 14px;
}

.auth-section--signup .auth-container {
    margin-top: 48px;
}

.auth-section--signup .auth-form-side,
.auth-section--signup .auth-hero-side {
    padding: 28px 44px;
}

.auth-section--signup .auth-form-card {
    padding: 18px 0;
}

.auth-section--signup .auth-title {
    font-size: 2.05rem;
}

.auth-section--signup .auth-subtitle {
    margin-bottom: 20px;
}

.auth-section--signup .auth-form .form-group input {
    padding: 12px 16px;
}

.auth-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-form .form-group label {
    font-weight: 600;
    color: white;
    font-size: 0.95rem;
}

.auth-form .form-group input {
    padding: 14px 18px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.auth-form .form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.auth-form .form-group input:focus {
    outline: none;
    border-color: rgba(122, 31, 60, 0.6);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(122, 31, 60, 0.2);
}

.auth-form .form-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.error-message {
    padding: 12px 16px;
    background: rgba(255, 107, 107, 0.15);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 8px;
    color: #ff6b6b;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 16px;
    animation: fadeIn 0.3s ease-out;
}

.error-message:empty {
    display: none;
}

/* Right Side - Hero */
.auth-hero-side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 48px;
    background: #7a1f3c;
    border-radius: 0 20px 20px 0; /* Only right corners rounded - left corners are sharp */
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-left: none; /* Remove left border for seamless connection */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    align-self: stretch; /* Match height of left side */
    min-height: 0; /* Allow grid to control height */
}

.auth-hero-content {
    text-align: center;
    max-width: 500px;
    z-index: 1;
}

.auth-hero-logo {
    width: 100%;
    max-width: 280px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.4));
    animation: fadeInUp 0.8s ease-out;
}

.auth-hero-title {
    font-size: 2.6rem;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.02em;
}

.auth-hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .auth-container {
        grid-template-columns: 1fr;
    }

    .auth-hero-side {
        display: none;
    }

    .auth-form-side {
        padding: 40px 30px;
        background: transparent;
        border: none;
        box-shadow: none;
        border-radius: 0;
    }

    .auth-form-card {
        padding: 40px 32px;
        background: rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: 20px; /* Full rounded on mobile */
        border: 1px solid rgba(255, 255, 255, 0.12); /* Restore border on mobile */
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }
}

@media (max-width: 640px) {
    .auth-section {
        padding-top: 100px; /* Account for mobile header */
        min-height: calc(100vh - 100px);
    }

    .auth-form-side {
        padding: 30px 20px;
    }

    .auth-form-card {
        padding: 32px 24px;
        border-radius: 16px;
    }

    .auth-title {
        font-size: 2rem;
    }

    .auth-subtitle {
        font-size: 0.9rem;
    }
}
