* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --azul: #1f5cff;
    --azul-oscuro: #0d2c6c;
    --naranja: #ff9500;
    --texto: #6b7a96;
    --blanco: #ffffff;
    --borde: rgba(31,92,255,0.12);
    --sombra: 0 25px 60px rgba(13,44,108,0.18);
}

body {
    font-family: 'Montserrat', sans-serif;
    min-height: 100vh;
    background:
        linear-gradient(135deg, rgba(8,22,54,0.92), rgba(13,44,108,0.88)),
        url('/img/fondo_principal.png') no-repeat right center;
    background-size: cover;
    background-attachment: fixed;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 30px 20px;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
}

body::before, body::after {
    content: "";
    position: fixed;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.10), rgba(255,255,255,0.02));
    pointer-events: none;
    z-index: 0;
}
body::before { width: 280px; height: 280px; top: 8%; left: 7%; }
body::after  { width: 360px; height: 360px; right: 8%; bottom: 5%; }

.login-shell {
    width: 100%;
    max-width: 1100px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2;
    padding: 20px 0;
}

.login-brand { color: white; padding: 20px 10px; }

.brand-badge {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 999px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.12);
    font-weight: 700;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.login-brand h1 {
    font-size: clamp(36px, 5vw, 68px);
    line-height: 0.95;
    font-weight: 800;
    margin-bottom: 18px;
}
.login-brand h1 span { color: var(--naranja); }

.login-brand p {
    font-size: 18px;
    line-height: 1.8;
    max-width: 560px;
    color: rgba(255,255,255,0.82);
    margin-bottom: 28px;
}

.brand-points { display: flex; flex-wrap: wrap; gap: 12px; }

.brand-pill {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.10);
    color: white;
    font-weight: 600;
    font-size: 14px;
    backdrop-filter: blur(8px);
}

.login-card {
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(255,255,255,0.35);
    backdrop-filter: blur(16px);
    border-radius: 30px;
    box-shadow: var(--sombra);
    padding: 36px;
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: "";
    position: absolute;
    width: 180px; height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,149,0,0.15), rgba(255,149,0,0));
    top: -60px; right: -50px;
    pointer-events: none;
}

.login-logo {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 20px; position: relative; z-index: 2;
}
.login-logo-mark { color: var(--naranja); font-size: 28px; font-weight: 800; }
.login-logo-text { color: var(--azul); font-size: 28px; font-weight: 800; }

.login-card h2 {
    font-size: 34px; color: var(--azul-oscuro);
    margin-bottom: 8px; font-weight: 800;
    position: relative; z-index: 2;
}

.login-card > p {
    color: var(--texto); line-height: 1.7;
    margin-bottom: 24px; position: relative; z-index: 2;
}

.input-group { margin-bottom: 18px; position: relative; z-index: 2; }

.input-group label {
    display: block; margin-bottom: 8px;
    font-size: 14px; font-weight: 700; color: var(--azul-oscuro);
}

.input-wrap { position: relative; }

.input-wrap input {
    width: 100%; height: 58px;
    border: 1px solid rgba(31,92,255,0.14);
    border-radius: 16px;
    padding: 0 52px 0 18px;
    font-family: inherit; font-size: 15px;
    outline: none; background: #fff;
    transition: 0.25s ease;
    -webkit-appearance: none;
}

.input-wrap input:focus {
    border-color: rgba(31,92,255,0.45);
    box-shadow: 0 0 0 4px rgba(31,92,255,0.08);
}

.input-icon {
    position: absolute; right: 16px; top: 50%;
    transform: translateY(-50%);
    font-size: 16px; color: #8da0c9; user-select: none;
}

.toggle-password {
    position: absolute; right: 14px; top: 50%;
    transform: translateY(-50%);
    border: none; background: transparent;
    cursor: pointer; color: #8da0c9; font-size: 16px;
}

.login-options {
    display: flex; align-items: center;
    justify-content: space-between; gap: 12px;
    margin: 8px 0 24px; position: relative; z-index: 2;
}

.remember { display: flex; align-items: center; gap: 8px; color: var(--texto); font-size: 14px; }
.remember input { accent-color: var(--azul); }

.forgot { color: var(--azul); font-size: 14px; font-weight: 700; text-decoration: none; }

.login-btn {
    width: 100%; height: 58px; border: none;
    border-radius: 18px;
    background: linear-gradient(135deg, #ff9500, #ff7b00);
    color: white; font-family: inherit;
    font-size: 16px; font-weight: 800;
    cursor: pointer; transition: 0.3s ease;
    box-shadow: 0 16px 32px rgba(255,149,0,0.28);
    position: relative; z-index: 2;
    -webkit-tap-highlight-color: transparent;
}

.login-btn:hover { transform: translateY(-2px); box-shadow: 0 20px 38px rgba(255,149,0,0.34); }
.login-btn:active { transform: scale(0.98); }

.bottom-links { margin-top: 20px; text-align: center; position: relative; z-index: 2; }
.bottom-links a { color: var(--azul); text-decoration: none; font-weight: 700; font-size: 14px; }

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 920px) {
    body { align-items: flex-start; padding: 24px 16px 40px; }

    .login-shell {
        grid-template-columns: 1fr;
        max-width: 480px;
        gap: 28px;
    }

    .login-brand { text-align: center; padding: 0; }
    .login-brand p { margin-left: auto; margin-right: auto; }
    .brand-points { justify-content: center; }
}

@media (max-width: 560px) {
    body { padding: 20px 14px 40px; }

    .login-shell { gap: 22px; }

    .login-brand h1 { font-size: 36px; }
    .login-brand p  { font-size: 15px; }

    .login-card { padding: 26px 20px; border-radius: 22px; }
    .login-card h2 { font-size: 26px; }

    .login-logo-mark,
    .login-logo-text { font-size: 22px; }

    .input-wrap input { height: 52px; font-size: 14px; }
    .login-btn { height: 54px; font-size: 15px; }

    .login-options { flex-direction: column; align-items: flex-start; gap: 10px; }

    .brand-pill { font-size: 13px; padding: 8px 12px; }
}