@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700&display=swap');

:root {
    --bg-dark: #0f172a;
    --pane-bg: #020617;
    --text-main: #f8fafc;
    --text-muted: #64748b;
    --accent: #38bdf8;
    --accent-hover: #0ea5e9;
    --error: #ef4444;
    --success: #10b981;
    --input-bg: rgba(30, 41, 59, 0.5);
    --border: #334155;
}

* { box-sizing: border-box; }

body {
    font-family: 'Outfit', sans-serif;
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
    background-color: var(--pane-bg);
    color: var(--text-main);
}

/* --- LAYOUT SPLIT-SCREEN --- */
.split-screen {
    display: flex;
    height: 100%;
    width: 100%;
}

/* --- LADO IZQUIERDO (VISUAL) --- */
.left-pane {
    flex: 1.3;
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem;
}

.overlay-gradient {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(2,6,23,0.95) 0%, rgba(15,23,42,0.6) 100%);
    z-index: 1;
}

.pane-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.brand-display h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin: 0;
    color: #fff;
}

.brand-dot { color: var(--accent); }
.brand-id { 
    font-size: 0.4em; 
    vertical-align: super; 
    color: var(--accent); 
    border: 1px solid var(--accent);
    padding: 2px 6px;
    border-radius: 4px;
}

.brand-slogan {
    font-size: 1.1rem;
    color: #cbd5e1;
    font-weight: 300;
    margin-top: 10px;
    max-width: 400px;
}

.glass-quote {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--accent);
    max-width: 350px;
}

.glass-quote p {
    font-style: italic;
    font-size: 1rem;
    color: #e2e8f0;
    margin: 0 0 10px 0;
}

.quote-author {
    font-size: 0.75rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

/* --- LADO DERECHO (FORMULARIO) --- */
.right-pane {
    flex: 1;
    background: var(--pane-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem;
    box-shadow: -10px 0 30px rgba(0,0,0,0.3);
}

.login-content {
    width: 100%;
    max-width: 420px;
    padding: 2rem;
}

.mobile-header { display: none; }

.form-header { margin-bottom: 2.5rem; }
.form-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #fff;
}
.form-header p {
    color: var(--text-muted);
    font-size: 1rem;
    margin: 0;
}

/* --- INPUTS MODERNOS --- */
.input-group { margin-bottom: 1.5rem; }

.input-group label {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.forgot-link-mini {
    color: var(--accent);
    text-decoration: none;
    text-transform: none;
    font-weight: 500;
    font-size: 0.8rem;
    transition: 0.3s;
}
.forgot-link-mini:hover { text-decoration: underline; color: #fff; }

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #475569;
    transition: 0.3s;
}

.cyber-input {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 14px 14px 45px;
    font-size: 1rem;
    color: #fff;
    transition: all 0.3s ease;
    outline: none;
}

.cyber-input:focus {
    border-color: var(--accent);
    background: rgba(56, 189, 248, 0.05);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.1);
}

.cyber-input:focus + .input-icon, 
.input-wrapper:focus-within .input-icon {
    color: var(--accent);
}

/* --- BOTÓN PRINCIPAL --- */
.cyber-btn {
    width: 100%;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-hover) 100%);
    border: none;
    padding: 16px;
    border-radius: 8px;
    color: #020617;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 1rem;
}

.cyber-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(56, 189, 248, 0.4);
}

/* --- FOOTER (ACTUALIZADO SIN EL COPYRIGHT) --- */
.login-footer {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.95rem;
}

.text-muted {
    color: var(--text-muted);
    margin-bottom: 5px;
    font-weight: 400;
}

.register-link {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: 0.3s;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.register-link:hover { 
    color: #fff; 
    text-shadow: 0 0 10px var(--accent-glow);
}

/* 🔥 SE ELIMINÓ LA CLASE .footer-copy AQUÍ */

/* --- ALERTAS --- */
.alert-box {
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.5;
}

.alert-box.error { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.2); color: #fca5a5; }
.alert-box.success { background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.2); color: #34d399; }

.wsp-link {
    display: inline-block;
    margin-top: 5px;
    color: #10b981;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
}

/* --- ANIMACIONES --- */
.animate-fade-in {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

/* --- RESPONSIVE (MÓVIL) --- */
@media (max-width: 900px) {
    .left-pane { display: none; }
    
    .right-pane {
        padding: 1.5rem;
        background-image: radial-gradient(circle at top right, #1e293b 0%, #020617 100%);
    }
    
    .mobile-header {
        display: block;
        text-align: center;
        margin-bottom: 2rem;
    }
    .mobile-header h1 {
        font-size: 2.5rem;
        font-weight: 800;
        margin: 0;
    }
    
    .form-header { text-align: center; }
    .form-header h2 { font-size: 1.8rem; }
    
    .login-content { padding: 0; }
}

/* --- VARIACIÓN ESPECÍFICA PARA REGISTRO --- */
/* Sobreescribe la imagen del login por una de Cocina/Chef */
.left-pane.register-visual {
    background-image: url('https://images.unsplash.com/photo-1559339352-11d035aa65de?q=80&w=1974&auto=format&fit=crop');
    /* La posición se mantiene 'center' y 'cover' heredada de .left-pane */
}