/* ==================== AUTH PAGE CONTENT STYLES ==================== */
/* Base styles (header, footer, nav, buttons, container) are in main.css */

/* ==================== AUTH MAIN CONTENT ==================== */
main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 60px;
    background: var(--light);
}

.auth-wrapper {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .12);
    width: 100%;
    display: flex;
    overflow: hidden;
    animation: fadeIn .6s ease-out;
}

.auth-image-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 3rem 2rem;
    position: relative;
    min-height: 500px;
}

.auth-image-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1511895243616-30d63ed5d6f8?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1000&q=80') center/cover no-repeat;
    opacity: 0.1;
    z-index: 0;
}

.auth-image-content {
    z-index: 1;
    text-align: center;
    color: #fff;
}

.auth-image-icon {
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.auth-image-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'Space Grotesk', sans-serif;
}

.auth-image-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
}

.auth-form-section {
    flex: 1;
    padding: 3rem 2.5rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: .5rem;
}

.auth-subtitle {
    font-size: 1rem;
    color: var(--gray);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.2rem;
}

.form-group {
    margin-bottom: 0;
}

label {
    display: block;
    font-size: .95rem;
    font-weight: 600;
    color: var(--slate);
    margin-bottom: .5rem;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    background: var(--light);
    transition: all .3s;
    color: var(--dark);
}

input:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 102, 255, .15);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: .9rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--slate);
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
    margin: 0;
}

.remember-me label {
    cursor: pointer;
    margin: 0;
    font-weight: 500;
}

.forgot-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.forgot-link:hover {
    text-decoration: underline;
}

.btn-signin {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    box-shadow: 0 4px 20px rgba(0, 102, 255, .4);
    transition: all .3s;
    margin-bottom: 1.5rem;
}

.btn-signin:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 102, 255, .5);
}

.btn-signup {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    box-shadow: 0 4px 20px rgba(0, 102, 255, .4);
    transition: all .3s;
    margin-bottom: 1.5rem;
}

.btn-signup:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 102, 255, .5);
}

.btn-reset {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    box-shadow: 0 4px 20px rgba(0, 102, 255, .4);
    transition: all .3s;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.btn-reset:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 102, 255, .5);
}

.divider {
    text-align: center;
    position: relative;
    margin: 1.5rem 0;
    color: var(--gray);
    font-size: .9rem;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
    z-index: 0;
}

.divider span {
    background: var(--light);
    padding: 0 1rem;
    z-index: 1;
    position: relative;
}

.social-login {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.btn-social {
    flex: 1;
    padding: .9rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: #fff;
    color: var(--slate);
    font-weight: 600;
    font-size: .95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    cursor: pointer;
    transition: all .3s;
}

.btn-social:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.auth-footer {
    text-align: center;
    font-size: .9rem;
    color: var(--gray);
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ==================== ERROR MESSAGES ==================== */
.error-message {
    background: #FEE2E2;
    border: 1px solid #FCA5A5;
    border-radius: 12px;
    padding: 1rem 1.2rem;
    margin-bottom: 1.5rem;
    color: #DC2626;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: fadeIn 0.3s ease-out;
}

.error-message i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.error-summary {
    background: #FEE2E2;
    border: 1px solid #FCA5A5;
    border-radius: 12px;
    padding: 1rem 1.2rem;
    margin-bottom: 1.5rem;
    color: #DC2626;
    font-size: 0.95rem;
    list-style: none;
    animation: fadeIn 0.3s ease-out;
}

.error-summary ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.error-summary li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.error-summary li:last-child {
    margin-bottom: 0;
}

.error-summary li::before {
    content: '\f06a';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.9rem;
}

.form-group input.error,
.form-group input.error:focus {
    border-color: #DC2626;
    background: #FEF2F2;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.field-error {
    color: #DC2626;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: block;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    main {
        padding: 120px 0 60px;
    }

    .auth-wrapper {
        flex-direction: column;
    }

    .auth-image-section {
        min-height: 300px;
        padding: 2rem 1.5rem;
    }

    .auth-form-section {
        padding: 2rem 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .social-login {
        flex-direction: column;
    }

    .auth-image-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .auth-image-title {
        font-size: 1.6rem;
    }

    .auth-image-subtitle {
        font-size: 1rem;
    }
}