/* ===============================================================
   AUTH.CSS - Login & Register Pages
   =============================================================== */

/* Auth Header */
.auth-header {
    background-color: var(--white);
    border-bottom: 1px solid #E5E5E5;
    padding: 1.5rem 2rem;
}

.auth-header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
}

.logo-icon {
    font-size: 2rem;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
    display: none;
}

/* Auth Section */
.auth-section {
    min-height: calc(100vh - 300px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    background-color: var(--light-bg);
}

.auth-container {
    max-width: 500px;
    width: 100%;
}

.auth-card {
    background-color: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.auth-card h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-align: left;
}

.auth-subtitle {
    color: var(--text-gray);
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* Alert Messages */
.alert {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
}

.alert-success {
    background-color: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
}

.alert-error {
    background-color: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
}

.alert-warning {
    background-color: #FFF3CD;
    color: #856404;
    border: 1px solid #FFEAA7;
}

/* Auth Form */
.auth-form {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
    font-family: 'Inter', sans-serif;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-green);
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-group label {
    font-size: 0.95rem;
    color: var(--text-dark);
    cursor: pointer;
    margin: 0;
}

.checkbox-group a {
    color: var(--primary-green);
    text-decoration: underline;
}

.forgot-link {
    color: var(--primary-green);
    font-size: 0.95rem;
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* Button */
.btn-full {
    width: 100%;
    padding: 1rem;
    font-size: 1.125rem;
}

/* Auth Footer Text */
.auth-footer {
    text-align: center;
    color: var(--text-gray);
    font-size: 0.95rem;
}

.auth-footer a {
    color: var(--primary-green);
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Auth Footer Bar */
.auth-footer-bar {
    background-color: var(--brown-bg);
    color: white;
    padding: 2rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.footer-left h3,
.footer-right h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: white;
}

.footer-left p {
    font-size: 0.95rem;
    opacity: 0.9;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .auth-card {
        padding: 2rem 1.5rem;
    }

    .auth-card h1 {
        font-size: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .auth-section {
        padding: 2rem 1rem;
    }

    .auth-card {
        padding: 1.5rem 1rem;
    }

    .auth-card h1 {
        font-size: 1.75rem;
    }
}
