/* =====================================================
   📍 Ubicación: /go/login/css/login.css
   💎 RUBIKU GO - BRAND IDENTITY (DIAMOND EDITION)
   ===================================================== */

:root {
    /* 🎨 Paleta de Poder Go */
    --go-dark: #0f0a1e;
    --go-panel: #1a1625;
    --go-primary: #8b5cf6;
    --go-accent: #d8b4fe;
    --go-success: #10b981;
    --go-error: #ef4444;

    /* 🌫️ Efectos de Superficie */
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    --glass: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 🏁 Reset & Core */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Space Grotesk', sans-serif;
}

body {
    background-color: var(--go-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
}

/* 🌓 Layout Dividido (Mobile First) */
.split-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

/* --- 🚀 LADO SHOWCASE (Visión de Marca) --- */
.side-showcase {
    flex: 1;
    background: radial-gradient(circle at top right, #2e1065, #0f0a1e);
    padding: 3rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-height: 40vh;
}

/* Efecto de Aura Pulsante en el Fondo */
.side-showcase::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    animation: pulse 8s infinite alternate;
}

.showcase-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
    text-align: center;
}

.brand-tag {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid var(--go-primary);
    color: var(--go-accent);
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: rgba(139, 92, 246, 0.1);
}

.main-title {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.main-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* --- 🔐 LADO LOGIN (Acción) --- */
.side-login {
    flex: 1;
    background: var(--go-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    position: relative;
}

.form-container {
    width: 100%;
    max-width: 400px;
    animation: fadeIn 0.8s ease-out;
}

.form-header {
    margin-bottom: 2.5rem;
}

.form-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.form-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
}

/* ✍️ Inputs & Form Groups */
.form-group {
    margin-bottom: 1.8rem;
    transition: var(--transition);
}

.form-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    padding: 1.1rem;
    background: var(--go-panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.form-input:focus {
    border-color: var(--go-primary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
    transform: translateY(-2px);
}

/* 👁️ Password Toggle (UX Especializada) */
.password-toggle-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1.3rem;
    transition: var(--transition);
    padding: 5px;
}

.password-toggle-icon:hover {
    color: var(--go-accent);
}



/* ⚡ Botón Principal (El "Motor" Go) */
.btn-primary {
    width: 100%;
    padding: 1.1rem;
    background: linear-gradient(135deg, var(--go-primary), #7c3aed);
    border: none;
    border-radius: 14px;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px -5px rgba(139, 92, 246, 0.5);
    filter: brightness(1.1);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 🛡️ Trust Message & Footer */
.login-trust {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    opacity: 0.7;
}

.form-footer {
    margin-top: 2.5rem;
    text-align: center;
    border-top: 1px solid var(--border);
    padding-top: 2rem;
}

.link {
    color: var(--go-accent);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.link:hover {
    color: white;
    text-decoration: underline;
}

.footer-badge {
    margin-top: 1.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.5;
}

/* --- 🪟 MODAL DE NOTIFICACIÓN (Nivel SaaS) --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 10, 30, 0.9);
    backdrop-filter: blur(12px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: var(--go-panel);
    border: 1px solid var(--border);
    padding: 3rem;
    border-radius: 28px;
    text-align: center;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 2rem auto;
}

.status-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--go-success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-error {
    background: rgba(239, 68, 68, 0.15);
    color: var(--go-error);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.modal-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.modal-message {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.modal-btn {
    background: var(--go-dark);
    border: 1px solid var(--border);
}

/* --- 🌀 ANIMACIONES & RESPONSIVE --- */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes pulse {
    from {
        transform: scale(1);
        opacity: 0.5;
    }

    to {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Desktop View (Nivel Diamond) */
@media (min-width: 1024px) {
    .split-container {
        flex-direction: row;
    }

    .side-showcase {
        flex: 1.2;
        padding: 5rem;
        text-align: left;
    }

    .showcase-content {
        text-align: left;
        margin: 0;
    }

    .side-login {
        flex: 0.8;
        border-left: 1px solid var(--border);
        background: radial-gradient(circle at center, #150f24 0%, #0f0a1e 100%);
    }

    .form-container {
        padding: 2rem;
    }
}