/* ===== REGISTRO MEJORADO ===== */

.log-admin-main {
    min-height: 100vh;
    padding: 20px;
    background-color: var(--background-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-medium);
}

[data-theme='dark'] .log-admin-main {
    background-color: var(--gray-900);
}

/* ===== CONTENEDOR SPLIT ===== */
.split-container {
    display: grid;
    grid-template-columns: 420px 480px;
    max-width: 920px;
    width: 100%;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

[data-theme='dark'] .split-container {
    background: var(--gray-800);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* ===== LADO IZQUIERDO: BENEFICIOS (color suave) ===== */
.benefits-side {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 48px 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

[data-theme='dark'] .benefits-side {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.benefits-content {
    width: 100%;
}

.benefits-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.2;
    color: #1e293b;
}

[data-theme='dark'] .benefits-title {
    color: #f1f5f9;
}

.highlight-free {
    color: #3b82f6;
    text-decoration: underline;
    text-decoration-color: #3b82f6;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.benefits-subtitle {
    font-size: 15px;
    margin-bottom: 32px;
    line-height: 1.5;
    color: #475569;
}

[data-theme='dark'] .benefits-subtitle {
    color: #cbd5e1;
}

.benefits-subtitle strong {
    color: #3b82f6;
    font-weight: 700;
}

/* Lista de beneficios */
.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.benefit-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.benefit-icon {
    background: #3b82f6;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.benefit-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.benefit-text strong {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}

[data-theme='dark'] .benefit-text strong {
    color: #f1f5f9;
}

.benefit-text span {
    font-size: 13px;
    color: #64748b;
}

[data-theme='dark'] .benefit-text span {
    color: #94a3b8;
}

/* Badge de confianza */
.trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    border: 1px solid #e2e8f0;
    color: #475569;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

[data-theme='dark'] .trust-badge {
    background: #1e293b;
    border-color: #334155;
    color: #cbd5e1;
}

.trust-badge i {
    font-size: 16px;
    color: #3b82f6;
}

/* ===== LADO DERECHO: FORMULARIO ===== */
.form-side {
    padding: 48px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
}

[data-theme='dark'] .form-side {
    background: var(--gray-800);
}

.form-wrapper {
    width: 100%;
}

/* Logo en formulario */
.form-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}


.logo-login {
    width: 70px;
    height: auto;
}

.form-header {
    margin-bottom: 24px;
    text-align: center;
}

.form-header h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--dark-text);
    margin: 0 0 6px 0;
}

[data-theme='dark'] .form-header h2 {
    color: var(--white);
}

.form-subtitle {
    font-size: 14px;
    color: var(--gray-600);
    margin: 0;
}

[data-theme='dark'] .form-subtitle {
    color: var(--gray-400);
}

/* 🎯 BANNER MÓVIL */
.mobile-benefits-banner {
    display: none;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #3b82f6;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}

[data-theme='dark'] .mobile-benefits-banner {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-color: #3b82f6;
}

.mobile-benefits-content {
    display: flex;
    gap: 12px;
    align-items: center;
}

.mobile-benefit-icon {
    background: #3b82f6;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
    color: white;
}

.mobile-benefit-text {
    flex: 1;
    color: #1e293b;
}

[data-theme='dark'] .mobile-benefit-text {
    color: #f1f5f9;
}

.mobile-benefit-text strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.mobile-benefit-text span {
    font-size: 12px;
    opacity: 0.8;
    line-height: 1.4;
}

/* Formularios */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.input-group {
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--dark-text);
    font-size: 14px;
}

[data-theme='dark'] .input-group label {
    color: var(--gray-200);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 14px;
    color: var(--gray-500);
    font-size: 16px;
    transition: var(--transition-fast);
}

.input-wrapper input {
    width: 100%;
    padding: 12px 44px 12px 44px;
    border: 2px solid var(--gray-300);
    border-radius: 10px;
    background-color: var(--gray-50);
    color: var(--dark-text);
    font-size: 15px;
    transition: all 0.25s ease;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

[data-theme='dark'] .input-wrapper i {
    color: var(--gray-400);
}

[data-theme='dark'] .input-wrapper input {
    background: var(--gray-700);
    border-color: var(--gray-600);
    color: var(--gray-100);
}

[data-theme='dark'] .input-wrapper input:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15);
}

/* Hint de input */
.input-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--gray-600);
    margin-top: 6px;
}

.input-hint i {
    color: var(--primary);
}

[data-theme='dark'] .input-hint {
    color: var(--gray-400);
}

/* Botón show password */
.show-password-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.show-password-btn i {
    font-size: 16px;
    color: var(--gray-500);
    pointer-events: none;
}

.show-password-btn:hover i {
    color: var(--primary);
}

/* ===== Botón volver a exámenes gratuitos ===== */
.back-free-exams {
    margin-top: 12px;
    display: flex;
    justify-content: center;
}

.btn-back-free {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 999px;
    border: 1px solid var(--gray-300);
    background-color: var(--gray-50);
    color: var(--primary-dark);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-back-free:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-back-free:active {
    transform: translateY(0);
}

.btn-back-free i {
    font-size: 13px;
}

[data-theme='dark'] .btn-back-free {
    background-color: transparent;
    border-color: var(--gray-600);
    color: var(--gray-300);
}

[data-theme='dark'] .btn-back-free:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    color: #0b1220;
}

/* Login link */
.login-link {
    text-align: center;
    font-size: 14px;
    color: var(--gray-600);
    margin-top: 12px;
}

[data-theme='dark'] .login-link {
    color: var(--gray-400);
}

.link-primary {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.link-primary:hover {
    text-decoration: underline;
}

/* Botón de tema */
.theme-toggle-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: var(--gray-800);
    color: var(--white);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition-medium);
    z-index: 100;
}

.theme-toggle-btn:hover {
    background-color: var(--primary);
    transform: scale(1.05);
}

[data-theme='dark'] .theme-toggle-btn {
    background-color: var(--primary-dark);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .split-container {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
    
    .benefits-side {
        display: none;
    }
    
    .mobile-benefits-banner {
        display: block;
    }
    
    .form-side {
        padding: 32px 24px;
    }
}

@media (max-width: 576px) {
    .log-admin-main {
        padding: 12px;
    }
    
    .split-container {
        border-radius: 16px;
    }
    
    .logo-login {
        width: 60px;
    }
    
    .form-header h2 {
        font-size: 22px;
    }
    
    .input-wrapper input {
        padding: 11px 40px;
        font-size: 14px;
    }
    
    .mobile-benefit-text strong {
        font-size: 14px;
    }
    
    .mobile-benefit-text span {
        font-size: 11px;
    }
}
