/* ============================================
   AUTH PAGES — Login / Registro
   ============================================ */

.auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--ink) 0%, var(--red-deep) 50%, var(--ink) 100%);
}

.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 60px);
    padding: 2rem;
    gap: 4rem;
}

/* ---- Card principal ---- */
.auth-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

.auth-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 2rem;
    right: 2rem;
    height: 3px;
    background: linear-gradient(90deg, var(--red-primary), var(--gold), var(--red-primary));
    border-radius: 0 0 16px 16px;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-seal {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--red-primary), var(--red-dark));
    color: white;
    font-family: var(--font-chinese);
    font-size: 1.8rem;
    font-weight: 700;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
}

.auth-header h1 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--ink);
    margin-bottom: 0.3rem;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ---- Flash messages ---- */
.auth-messages {
    margin-bottom: 1.5rem;
}

.auth-msg {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.auth-msg-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.auth-msg-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* ---- Form ---- */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

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

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

.form-group input {
    padding: 0.75rem 1rem;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--ink);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.form-group input:focus {
    border-color: var(--red-primary);
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1);
}

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

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--red-primary);
}

/* ---- Submit button ---- */
.auth-btn {
    padding: 0.85rem;
    background: linear-gradient(135deg, var(--red-primary), var(--red-dark));
    color: white;
    border: none;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 0.5rem;
}

.auth-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.3);
}

.auth-btn:active {
    transform: translateY(0);
}

/* ---- Footer ---- */
.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f0f0f0;
}

.auth-footer p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--red-primary);
    font-weight: 600;
    text-decoration: none;
}

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

/* ---- Decorative side ---- */
.auth-decoration {
    text-align: center;
    color: white;
    opacity: 0.9;
}

.auth-char {
    font-family: var(--font-chinese);
    font-size: 8rem;
    font-weight: 900;
    line-height: 1;
    opacity: 0.15;
    margin-bottom: 1rem;
    user-select: none;
}

.auth-proverb {
    font-family: var(--font-chinese);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.auth-proverb-pt {
    font-family: var(--font-body);
    font-size: 0.9rem;
    opacity: 0.7;
    font-style: italic;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
        gap: 2rem;
        padding: 1rem;
    }

    .auth-decoration {
        display: none;
    }

    .auth-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 0.5rem;
    }

    .auth-card {
        padding: 1.5rem 1rem;
        border-radius: 12px;
    }

    .auth-seal {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }

    .auth-title {
        font-size: 1.3rem;
    }

    .auth-input {
        padding: 0.7rem 0.9rem;
        font-size: 0.9rem;
    }

    .auth-btn {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
}
