.auth-container {
    max-width: 440px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.auth-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
}

.auth-card h2 {
    font-family: 'Instrument Serif', Georgia, serif;
    font-weight: 400;
    font-size: 1.6rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.auth-card .auth-subtitle {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    color: #555;
    margin-bottom: 0.4rem;
}

.form-group input {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.form-group .input-hint {
    font-size: 0.8rem;
    color: #888;
    margin-top: 0.3rem;
}

.form-group .input-error {
    font-size: 0.8rem;
    color: #e53e3e;
    margin-top: 0.3rem;
    display: none;
}

.btn-auth {
    width: 100%;
    padding: 0.75rem;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 0.5rem;
}

.btn-auth:hover {
    background-color: #1d4ed8;
}

.btn-auth:disabled {
    background-color: #aaa;
    cursor: not-allowed;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #666;
}

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

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

.auth-error {
    background-color: #fed7d7;
    color: #9b2c2c;
    border: 1px solid #feb2b2;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: none;
}

.auth-error.visible {
    display: block;
}

.auth-success {
    background-color: #c6f6d5;
    color: #22543d;
    border: 1px solid #9ae6b4;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: none;
}

.auth-success.visible {
    display: block;
}

.forgot-password-link {
    display: block;
    text-align: right;
    font-size: 0.85rem;
    color: #2563eb;
    text-decoration: none;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}

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

/* User info in nav */
.nav-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

.nav-user-name {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
}

.nav-user .btn-logout {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.nav-user .btn-logout:hover {
    background: rgba(255, 255, 255, 0.25);
}

.btn-success {
    background-color: #38a169;
    color: white;
}

.btn-success:hover {
    background-color: #2f855a;
}
