/* =========================
   RESET / BASE
========================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    background: #1e3a8a;
    color: #111827;
    overflow-x: hidden;
}

/* =========================
   LAYOUT
========================= */
.login-wrapper {
    min-height: 100vh;
    display: flex;
}

/* =========================
   LANDING LEFT
========================= */
.login-info {
    flex: 1;
    position: relative;
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    padding: 80px 70px;
    overflow: hidden;
    color: #fff;
}

.login-info-content {
    position: relative;
    z-index: 2;
}

/* Marca */
.brand {
    font-size: 52px;
    font-weight: 700;
    letter-spacing: .5px;
    margin-bottom: 10px;
}

/* Subtítulo */
.subtitle {
    font-size: 20px;
    line-height: 1.5;
    opacity: .95;
    margin-bottom: 35px;
}

/* Beneficios */
.benefits {
    list-style: none;
    margin-bottom: 30px;
}

.benefits li {
    font-size: 16px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all .35s ease;
}

.benefits li.highlight {
    transform: translateX(8px);
    font-weight: 600;
    text-shadow: 0 4px 12px rgba(0,0,0,.2);
}

/* Persona */
.persona {
    margin-top: 20px;
    max-width: 260px;
}

.persona img {
    width: 100%;
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(0,0,0,.25);
    animation: floatPersona 6s ease-in-out infinite;
}

/* Badge */
.badge {
    margin-top: 35px;
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,.18);
    backdrop-filter: blur(6px);
    font-weight: 600;
    opacity: .95;
}

/* Hint */
.hint {
    margin-top: 25px;
    font-size: 13px;
    opacity: .75;
    animation: pulse 2s infinite;
}

/* =========================
   BLOBS DECORATIVOS
========================= */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    opacity: .35;
    animation: blobFloat 14s infinite alternate ease-in-out;
}

.blob-1 {
    width: 320px;
    height: 320px;
    background: #ffffff;
    top: -120px;
    right: -140px;
}

.blob-2 {
    width: 240px;
    height: 240px;
    background: #60a5fa;
    bottom: -100px;
    left: -120px;
    animation-delay: 4s;
}

/* =========================
   LOGIN RIGHT
========================= */
.login-box {
    flex: 1;
    background: #ffffff;
    padding: 80px 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-box h2 {
    font-size: 28px;
    margin-bottom: 25px;
    color: #1f2937;
}

/* =========================
   FORM
========================= */
.login-box label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-top: 15px;
}

.login-box input {
    width: 100%;
    padding: 12px 14px;
    margin-top: 6px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    transition: all .25s ease;
}

.login-box input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}

.input.focused {
    transform: translateY(-1px);
}

/* Opciones */
.options {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin: 15px 0;
    color: #374151;
}

/* =========================
   BUTTON
========================= */
.login-box button {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
    transition: all .3s ease;
}

.login-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37,99,235,.25);
}

.login-box button:disabled {
    opacity: .85;
    cursor: not-allowed;
}

.btn-text {
    transition: opacity .2s ease;
}

.btn-loader {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
}

.loading .btn-text {
    opacity: 0;
}

.loading .btn-loader {
    display: flex;
}

.btn-loader::after {
    content: "";
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255,255,255,.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* =========================
   ERROR
========================= */
.error {
    background: #fee2e2;
    color: #991b1b;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 15px;
    font-size: 14px;
}

/* =========================
   REGISTER
========================= */
.register {
    margin-top: 25px;
    font-size: 14px;
}

.register a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

/* =========================
   FOOTER
========================= */
footer {
    position: absolute;
    bottom: 15px;
    width: 100%;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,.9);
}

/* =========================
   ANIMACIONES JS
========================= */
[data-animate] {
    opacity: 0;
    transform: translateY(20px);
    transition: all .6s ease;
}

[data-animate].show {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   KEYFRAMES
========================= */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { opacity: .4; }
    50% { opacity: .9; }
    100% { opacity: .4; }
}

@keyframes floatPersona {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

@keyframes blobFloat {
    from { transform: translate(0,0); }
    to { transform: translate(30px,-40px); }
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
    .login-wrapper {
        flex-direction: column;
    }

    .login-info,
    .login-box {
        padding: 50px 35px;
    }

    .persona {
        max-width: 220px;
    }

    footer {
        position: static;
        margin: 20px 0;
    }
}

/* =========================
   HINT SOLO MÓVIL
========================= */
.hint-mobile {
    display: none;
    margin-top: 25px;
    font-size: 13px;
    text-align: center;
    color: rgba(255,255,255,.85);
    text-decoration: none;
    animation: pulse 2s infinite;
}

/* Mostrar SOLO en móviles */
@media (max-width: 900px) {
    .hint-mobile {
        display: block;
    }
}
