/* ========================================== */
/* BARRA SUPERIOR Y BOTÓN ENTRAR              */
/* ========================================== */
.main-header {
    width: 100%;
    padding: 10px 20px;
    box-sizing: border-box;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto;
}

.nav-logo {
    color: #a29bfe;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Botón "Entrar" idéntico a la Imagen Uno */
.btn-entrar-nav {
    background-color: #7c3aed;
    color: #ffffff;
    border: none;
    padding: 10px 28px;
    border-radius: 16px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-entrar-nav:hover {
    background-color: #6d28d9;
    transform: translateY(-1px);
}

/* ========================================== */
/* FONDO OVERLAY Y TARJETA MODAL              */
/* ========================================== */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 12, 27, 0.75);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 15px;
    box-sizing: border-box;
}

.auth-overlay.hidden {
    display: none !important;
}

.auth-card {
    background-color: #ffffff;
    color: #1e293b;
    width: 100%;
    max-width: 440px;
    border-radius: 20px;
    padding: 30px 28px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    position: relative;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    animation: authPopIn 0.25s ease-out;
}

@keyframes authPopIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.auth-close-btn {
    position: absolute;
    top: 15px;
    right: 18px;
    background: transparent;
    border: none;
    font-size: 1.6rem;
    color: #94a3b8;
    cursor: pointer;
}

.auth-close-btn:hover {
    color: #475569;
}

/* ========================================== */
/* CONMUTADOR DE PESTAÑAS (TABS)              */
/* ========================================== */
.auth-tabs {
    display: flex;
    background-color: #f1f5f9;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 24px;
}

.tab-btn {
    flex: 1;
    padding: 10px 0;
    border: none;
    background: transparent;
    color: #64748b;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn.active {
    background-color: #ffffff;
    color: #0f172a;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* ========================================== */
/* ELEMENTOS DEL FORMULARIO                   */
/* ========================================== */
.auth-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 20px;
    text-align: left;
}

/* Botón Google */
.btn-google {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 11px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-google:hover {
    background-color: #f8fafc;
}

.google-svg {
    width: 18px;
    height: 18px;
}

/* Divisor OR */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 18px 0;
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.auth-divider span {
    padding: 0 10px;
}

/* Campos de entrada */
.form-group {
    margin-bottom: 16px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
}

.label-with-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forgot-link {
    color: #7c3aed;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}

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

.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #0f172a;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus {
    border-color: #7c3aed;
}

/* Campo de Contraseña con Ojo */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.eye-btn {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #64748b;
    display: flex;
    align-items: center;
    padding: 0;
}

.eye-btn:hover {
    color: #334155;
}

.field-hint {
    display: block;
    color: #64748b;
    font-size: 0.8rem;
    margin-top: 6px;
}

/* Checkboxes */
.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    text-align: left;
}

.checkbox-row input[type="checkbox"] {
    margin-top: 3px;
    accent-color: #7c3aed;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.checkbox-row label {
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.3;
    cursor: pointer;
}

.inline-link {
    color: #475569;
    text-decoration: underline;
}

/* Botón Morado Submit */
.btn-purple-submit {
    width: 100%;
    background-color: #7c3aed;
    color: #ffffff;
    border: none;
    padding: 13px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: background-color 0.2s;
}

.btn-purple-submit:hover {
    background-color: #6d28d9;
}

/* Pie de página del Modal */
.auth-footer {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #64748b;
    text-align: center;
}

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

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

.auth-form-block.hidden {
    display: none;
}