/* Ubicación: /ku2/login/css/login.css */

:root {
    --ku2-dark: #0f0a1e;
    --ku2-panel: #1a1625;
    --ku2-primary: #8b5cf6;
    --ku2-accent: #d8b4fe;
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    --glass: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Space Grotesk', sans-serif;
}

body {
    background-color: var(--ku2-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.split-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

/* --- LADO SHOWCASE (Izquierda) --- */
.side-showcase {
    flex: 1;
    background: radial-gradient(circle at top right, #2e1065, #0f0a1e);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    min-height: 60vh;
}

.side-showcase::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
    animation: pulse 8s infinite alternate;
}

.showcase-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.brand-area {
    margin-bottom: 3rem;
}

.brand-tag {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid var(--ku2-primary);
    color: var(--ku2-accent);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1;
    font-weight: 700;
    margin-bottom: 1rem;
}

.main-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 400px;
    line-height: 1.6;
}

/* --- TARJETAS DE NOTICIAS --- */
.news-grid {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.news-card {
    background: var(--glass);
    border: 1px solid var(--border);
    padding: 1.25rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-3px);
    border-color: var(--ku2-primary);
}

.news-date {
    font-size: 0.75rem;
    color: var(--ku2-accent);
    display: block;
    margin-bottom: 0.5rem;
}

.news-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.news-snippet {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.mobile-login-trigger {
    display: block;
    margin-top: 2rem;
    width: 100%;
    padding: 1rem;
    background: var(--text-main);
    color: var(--ku2-dark);
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
}

/* --- LADO LOGIN (Derecha) --- */
.side-login {
    flex: 1;
    background: var(--ku2-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    min-height: 50vh;
}

.login-wrapper {
    width: 100%;
    max-width: 400px;
    animation: fadeIn 0.8s ease-out;
}

.login-header {
    margin-bottom: 2rem;
}

.login-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.login-sub {
    color: var(--text-muted);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 1rem;
    background: var(--ku2-panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: var(--ku2-primary);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}

.btn-primary {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--ku2-primary), #7c3aed);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.3s;
    margin-top: 1rem;
}

.btn-primary:hover {
    opacity: 0.9;
}

.form-footer {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.link {
    color: var(--ku2-accent);
    text-decoration: none;
    cursor: pointer;
}

.link:hover {
    text-decoration: underline;
}

.error-msg {
    color: #ef4444;
    font-size: 0.9rem;
    margin-top: 1rem;
    text-align: center;
    display: none;
    background: rgba(239, 68, 68, 0.1);
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* MEDIA QUERIES */
@media (min-width: 900px) {
    .split-container {
        flex-direction: row;
        height: 100vh;
        overflow: hidden;
    }

    .side-showcase {
        flex: 1.2;
        padding: 4rem;
        justify-content: center;
        height: 100%;
        overflow-y: auto;
    }

    .side-login {
        flex: 0.8;
        border-left: 1px solid var(--border);
        height: 100%;
        overflow-y: auto;
    }

    .mobile-login-trigger {
        display: none;
    }

    .news-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* --- MODAL DE NOTIFICACIÓN (Nivel Pro) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 10, 30, 0.85);
    /* Fondo oscuro muy opaco */
    backdrop-filter: blur(8px);
    /* Desenfoque del fondo */
    display: none;
    /* Oculto por defecto */
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeInOverlay 0.3s ease-out;
}

.modal-content {
    background: #1a1625;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 24px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Icono animado */
.modal-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem auto;
    color: white;
}

/* Tipos de estado */
.status-success {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.status-error {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.modal-message {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 2rem;
}

.modal-btn {
    margin-top: 0;
    /* Override del btn-primary */
    background: var(--ku2-panel);
    border: 1px solid var(--border);
}

.modal-btn:hover {
    background: var(--ku2-primary);
    border-color: var(--ku2-primary);
}

/* Animaciones */
@keyframes fadeInOverlay {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes popIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}