/* --- RESET Y VARIABLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #0f172a; /* Fondo ultra oscuro */
    color: #f8fafc;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* --- HEADER --- */
.navbar {
    height: 80px;
    padding: 0 40px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #1e293b;
    background-color: #0f172a;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #ffffff;
}

.logo span {
    color: #f97316; /* Naranja MemorIQ */
}

/* --- CONTENEDOR CENTRAL --- */
.auth-container {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.auth-card {
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 40px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.hidden {
    display: none !important;
}

.auth-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-align: center;
    color: #ffffff;
}

.auth-subtitle {
    font-size: 0.95rem;
    color: #94a3b8;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.5;
}

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

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #cbd5e1;
}

.input-group input {
    background-color: #0f172a;
    border: 1px solid #475569;
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.input-group input:focus {
    border-color: #f97316;
}

/* --- BOTÓN PRINCIPAL --- */
.btn-primary {
    background-color: #f97316;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px -1px rgba(249, 115, 22, 0.2);
}

.btn-primary:hover {
    background-color: #ea580c;
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(249, 115, 22, 0.4);
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-primary:disabled {
    background-color: #475569;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.full-width {
    width: 100%;
}

/* --- MENSAJES EN PANTALLA (CERO ALERTS) --- */
.auth-message {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.4;
    font-weight: 500;
    text-align: center;
}

.auth-message.error {
    background-color: rgba(239, 68, 68, 0.15);
    border: 1px solid #ef4444;
    color: #fca5a5;
}

.auth-message.success {
    background-color: rgba(34, 197, 94, 0.15);
    border: 1px solid #22c55e;
    color: #86efac;
}

/* --- FOOTER --- */
.auth-footer {
    margin-top: 25px;
    text-align: center;
}

.back-link {
    color: #94a3b8;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #f97316;
}

.main-footer {
    padding: 20px;
    text-align: center;
    border-top: 1px solid #1e293b;
    font-size: 0.85rem;
    color: #64748b;
}