/* ==========================================================================
   HINOPT E-COMMERCE - AUTHENTICATION STYLES (LOGIN & REGISTER)
   ========================================================================== */

.auth-section {
    min-height: calc(100vh - 80px); /* Adjust based on navbar height */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 5%;
    background: linear-gradient(135deg, var(--background) 0%, rgba(184, 134, 11, 0.05) 100%);
    position: relative;
    overflow: hidden;
}

.auth-section::before {
    content: '';
    position: absolute;
    top: -10%; left: -10%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.auth-section::after {
    content: '';
    position: absolute;
    bottom: -15%; right: -5%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.auth-container {
    width: 100%;
    max-width: 440px;
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2.5rem 3rem;
    box-shadow: 0 10px 40px rgba(184, 134, 11, 0.12);
    border: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .auth-container {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.auth-container h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    text-align: center;
    letter-spacing: -0.5px;
}

.auth-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 2rem;
}

.auth-container form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    background: var(--background);
    color: var(--text-color);
    transition: var(--transition);
    outline: none;
    font-family: inherit;
}

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.form-group input::placeholder {
    color: #9CA3AF;
}

.error-message {
    color: #EF4444;
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 0.2rem;
    display: none;
}

.success-message {
    color: #10B981;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 6px;
    display: none;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    margin-top: -0.25rem;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.checkbox input {
    cursor: pointer;
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

.forgot-password {
    color: var(--primary);
    font-weight: 600;
}

.forgot-password:hover {
    text-decoration: underline;
}

.auth-container .btn-primary {
    width: 100%;
    padding: 0.9rem;
    font-size: 1rem;
    margin-top: 0.5rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(184, 134, 11, 0.25);
}

.auth-container .btn-primary:hover {
    box-shadow: 0 6px 20px rgba(184, 134, 11, 0.35);
    transform: translateY(-2px);
}

.auth-footer {
    text-align: center;
    margin-top: 1.75rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 700;
    margin-left: 0.25rem;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Responsive Auth Section */
@media (max-width: 580px) {
    .auth-section {
        padding: 2rem 1rem;
    }
    
    .auth-container {
        padding: 2rem 1.5rem;
        border-radius: 10px;
    }

    .auth-container h1 {
        font-size: 1.5rem;
    }

    .form-group input {
        padding: 0.75rem 0.85rem;
        font-size: 0.9rem;
    }
}
