/**
 * Authentication page styles — matches dashboard light theme
 */

body {
    background: #DDD0C4;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #3a2720;
}

.auth-container {
    width: 100%;
    max-width: 420px;
}

.auth-card {
    background: rgba(255, 255, 255, 0.60);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(107, 62, 56, 0.17);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(58, 39, 32, 0.12);
    padding: 40px;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h1 {
    color: #3a2720;
    font-size: 2.2rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.auth-header p {
    color: #5a4139;
    font-size: 0.92rem;
}

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

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

.form-group label {
    margin-bottom: 8px;
    font-weight: 500;
    color: #5a4139;
    font-size: 0.88rem;
}

.form-group input {
    padding: 13px 14px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(107, 62, 56, 0.21);
    border-radius: 12px;
    font-size: 0.95rem;
    color: #3a2720;
    transition: border-color 0.2s, background 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: rgba(107, 62, 56, 0.41);
    background: rgba(255, 255, 255, 0.80);
}

.form-group input::placeholder {
    color: #8a6e66;
}

.success-message {
    padding: 12px;
    background: rgba(39, 127, 82, 0.08);
    border: 1px solid rgba(39, 127, 82, 0.30);
    border-radius: 10px;
    color: #1e6b44;
    font-size: 0.88rem;
    text-align: center;
}

.error-message {
    padding: 12px;
    background: rgba(192, 57, 43, 0.08);
    border: 1px solid rgba(192, 57, 43, 0.30);
    border-radius: 10px;
    color: #a0291c;
    font-size: 0.88rem;
    text-align: center;
}

.auth-form .btn-primary {
    padding: 13px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 8px;
    border-radius: 12px;
    letter-spacing: 0.3px;
    background: #6b3e38;
    color: rgba(255, 255, 255, 0.90);
    border: 1px solid rgba(58, 39, 32, 0.20);
    cursor: pointer;
    transition: all 350ms ease-in-out;
    text-transform: none;
}

.auth-form .btn-primary:hover:not(:disabled) {
    background: #5a332e;
    color: white;
    border-color: transparent;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        inset 0 -3px 0 rgba(0, 0, 0, 0.18),
        0 0 0 3px rgba(107, 62, 56, 0.17);
    transform: translateY(-1px);
}

.auth-form .btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.auth-footer {
    margin-top: 24px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(107, 62, 56, 0.15);
}

.auth-footer p {
    color: #5a4139;
    font-size: 0.88rem;
}

.auth-footer a {
    color: #3a2720;
    font-weight: 600;
    text-decoration: none;
}

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

@media (max-width: 480px) {
    .auth-card {
        padding: 30px 24px;
    }

    .auth-header h1 {
        font-size: 1.8rem;
    }
}
