/* ===== PÁGINA DE AUTENTICACIÓN ===== */
.auth-page {
    min-height: 100vh;
    background: #fdf6e3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    gap: 24px;
}

.auth-logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: #8B2635;
    text-decoration: none;
    letter-spacing: -0.5px;
}
.auth-logo:hover { opacity: 0.8; }

.auth-card {
    background: #fffef5;
    border: 1px solid #e0c98a;
    border-radius: 20px;
    padding: 36px 32px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 8px 32px rgba(139,38,53,0.10);
}

/* Tabs */
.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 28px;
    border-bottom: 2px solid #e0c98a;
}
.auth-tab {
    flex: 1;
    padding: 10px;
    font-weight: 700;
    font-size: 15px;
    background: none;
    border: none;
    color: #b89a6a;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}
.auth-tab.active { color: #8B2635; border-bottom-color: #8B2635; }
.auth-tab:hover  { color: #8B2635; }

/* Mensajes */
.auth-msg {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}
.auth-error   { background: #fde8e8; color: #8B2635; border: 1px solid #f5c6c6; }
.auth-success { background: #e8f5e8; color: #2d6a2d; border: 1px solid #c6e8c6; }

/* Formularios */
.auth-form { display: flex; flex-direction: column; gap: 18px; }
.auth-form.hidden { display: none; }

.field-group { display: flex; flex-direction: column; gap: 6px; }
.field-label {
    font-size: 11px;
    font-weight: 800;
    color: #b89a6a;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.field-input {
    border: 2px solid #d4b483;
    border-radius: 10px;
    padding: 11px 16px;
    font-size: 15px;
    background: #fdf6e3;
    color: #2c1810;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.field-input:focus {
    border-color: #8B2635;
    box-shadow: 0 0 0 3px rgba(139,38,53,0.10);
}
.field-input::placeholder { color: #c8a87a; }

.auth-btn {
    padding: 13px;
    background: #8B2635;
    color: white;
    font-weight: 800;
    font-size: 15px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    margin-top: 4px;
}
.auth-btn:hover  { opacity: 0.88; }
.auth-btn:active { transform: scale(0.98); }

.auth-switch {
    text-align: center;
    font-size: 13px;
    color: #8a6a4a;
}
.auth-switch a {
    color: #8B2635;
    font-weight: 700;
    text-decoration: none;
}
.auth-switch a:hover { text-decoration: underline; }