@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --azul-oscuro: #0a1628;
    --azul-medio: #1a3a6b;
    --azul-principal: #1e4db7;
    --azul-claro: #2563eb;
    --azul-acento: #3b82f6;
    --blanco: #f8faff;
    --gris-texto: #94a3b8;
    --gris-borde: #1e3a5f;
}

html, body {
    height: 100%;
    font-family: 'DM Sans', sans-serif;
    background-color: var(--azul-oscuro);
    color: var(--blanco);
    overflow: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(30, 77, 183, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 60% 80%, rgba(10, 22, 40, 0.8) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '+';
    position: fixed;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 600px;
    font-weight: 300;
    color: rgba(30, 77, 183, 0.06);
    line-height: 1;
    pointer-events: none;
    z-index: 0;
    font-family: 'DM Sans', sans-serif;
}

.container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 480px;
    min-height: 100vh;
}

.panel-izquierdo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 60px;
    border-right: 1px solid rgba(30, 77, 183, 0.2);
    overflow: hidden;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 40px;
}

.logo-icono {
    width: 42px;
    height: 42px;
    background: var(--azul-principal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    flex-shrink: 0;
}

.logo-texto {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--azul-acento);
}

.tagline {
    font-family: 'Playfair Display', serif;
    font-size: clamp(32px, 3.5vw, 52px);
    font-weight: 600;
    line-height: 1.15;
    color: var(--blanco);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.tagline span { color: var(--azul-acento); }

.descripcion {
    font-size: 15px;
    color: var(--gris-texto);
    line-height: 1.7;
    max-width: 420px;
    font-weight: 300;
}

.stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(30, 77, 183, 0.2);
}

.stat-numero {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--blanco);
    display: block;
}

.stat-label {
    font-size: 12px;
    color: var(--gris-texto);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

.panel-derecho {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 48px;
    background: rgba(255,255,255, 0.02);
}

.form-card {
    width: 100%;
    animation: fadeUp 0.6s ease both;
}

.form-card::before {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--azul-acento);
    margin-bottom: 32px;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.form-header { margin-bottom: 40px; }

.form-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 30px;
    font-weight: 600;
    color: var(--blanco);
    margin-bottom: 8px;
}

.form-header p {
    font-size: 14px;
    color: var(--gris-texto);
    font-weight: 300;
}

.form-group { margin-bottom: 20px; }

label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gris-texto);
    margin-bottom: 8px;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    height: 52px;
    background: rgba(255,255,255, 0.04);
    border: 1px solid var(--gris-borde);
    padding: 0 16px;
    font-size: 15px;
    font-family: 'DM Sans', sans-serif;
    color: var(--blanco);
    transition: all 0.2s ease;
    outline: none;
    border-radius: 0;
}

input[type="text"]::placeholder,
input[type="password"]::placeholder {
    color: rgba(148, 163, 184, 0.4);
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: var(--azul-acento);
    background: rgba(59, 130, 246, 0.05);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn-login {
    width: 100%;
    height: 52px;
    background: var(--azul-principal);
    color: white;
    border: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
    border-radius: 0;
}

.btn-login:hover {
    background: var(--azul-claro);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(30, 77, 183, 0.4);
}

.btn-login:active { transform: translateY(0); }

#respuesta, .message {
    font-size: 13px;
    color: #f87171;
    margin-bottom: 16px;
    min-height: 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

#respuesta:not(:empty)::before { content: '⚠'; font-size: 12px; }

.divider {
    height: 1px;
    background: var(--gris-borde);
    margin: 32px 0;
}

.footer-form {
    font-size: 12px;
    color: rgba(148, 163, 184, 0.5);
    text-align: center;
    font-weight: 300;
}

.footer-copy {
    font-size: 11px;
    color: rgba(148, 163, 184, 0.35);
    text-align: center;
    margin-top: 8px;
    font-weight: 300;
}

@media (max-width: 900px) {
    .container { grid-template-columns: 1fr; }
    .panel-izquierdo { display: none; }
    .panel-derecho { padding: 40px 32px; }
    body::after { display: none; }
}