.auth-section {
    padding: 0.5rem 5% 2rem;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    scroll-margin-top: 100px;
    min-height: 30vh;
    height: auto;
    overflow: visible;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

.auth-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    border: 1px solid #e2e8f0;
    max-width: 420px;
    width: 100%;
}

.auth-card h2 {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: inherit;
}

.auth-card p.subtitle {
    text-align: center;
    color: #64748b;
    margin-bottom: 2rem;
}

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

.auth-form label {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: inherit;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid #cbd5f5;
    border-radius: 10px;
    background: #ffffff;
    color: inherit;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-form input[type="text"]:focus,
.auth-form input[type="email"]:focus,
.auth-form input[type="password"]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.auth-form .form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.remember-me label {
    display: inline;
    margin: 0;
    font-weight: 500;
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #1a1a1a;
}

.auth-form .form-footer a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

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

.auth-form button[type="submit"] {
    width: 100%;
    padding: 0.95rem 1rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    background: #1a1a1a;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.auth-form button[type="submit"]:hover {
    background: #2d2d2d;
    transform: translateY(-1px);
}

.auth-form .form-note {
    text-align: center;
    font-size: 0.9rem;
    color: #475569;
}

.auth-form .form-note a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

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

.alert {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
}

.alert-error {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #b91c1c;
}

.alert-success {
    background: #dcfce7;
    border: 1px solid #86efac;
    color: #166534;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .auth-section {
        height: auto;
        min-height: 40vh;
        padding: 2rem 5% 3rem;
    }

    .auth-card {
        padding: 2rem 1.5rem;
        max-width: 100%;
        border-radius: 12px;
    }

    .auth-card h2 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .auth-form {
        gap: 1.25rem;
    }

    .auth-form input[type="text"],
    .auth-form input[type="email"],
    .auth-form input[type="password"] {
        padding: 0.75rem 0.875rem;
        font-size: 0.95rem;
    }

    .auth-form button[type="submit"] {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }
}
