@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600;9..40,700&family=DM+Mono:wght@400;500&display=swap');

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    background: #eef3f9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'DM Sans', sans-serif;
    position: relative;
    overflow-x: hidden;
    padding: 1.5rem;
}

/* Glow azul sutil en fondo claro */
body::before {
    content: '';
    position: fixed;
    width: 700px; height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(41,126,203,.10) 0%, transparent 65%);
    top: -300px; right: -200px;
    pointer-events: none;
    z-index: 0;
}

/* ── Card ── */
.login-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 460px;
    background: #ffffff;
    border: 1px solid #d6e4f0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(15,40,70,.10), 0 1px 4px rgba(15,40,70,.06);
}

/* Línea de acento superior */
.login-card::before {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(90deg, #297ecb 0%, #64b5f6 100%);
}

.login-card .card-body {
    padding: 2.25rem 2.5rem 2.75rem;
}

/* ── Logo ── */
.login-logo-wrap { margin-bottom: 2rem; }
.login-logo-wrap img { height: 36px; width: auto; display: block; }

/* ── Heading ── */
.login-heading {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #0d1f33;
    margin: 0 0 .3rem;
    letter-spacing: -.4px;
}

.login-subheading {
    font-size: .82rem;
    color: #8da5be;
    margin: 0 0 1.85rem;
}

/* ── Labels ── */
.login-field-label {
    display: block;
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #8da5be;
    margin-bottom: .45rem;
}

/* ── Inputs ── */
.form-control {
    width: 100% !important;
    background: #f5f8fc !important;
    border: 1px solid #d6e4f0 !important;
    border-radius: 10px !important;
    padding: .68rem .9rem !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: .875rem !important;
    color: #0d1f33 !important;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.form-control:focus {
    background: #ffffff !important;
    border-color: #297ecb !important;
    box-shadow: 0 0 0 3px rgba(41,126,203,.12) !important;
    outline: none;
    color: #0d1f33 !important;
}

.form-control::placeholder {
    color: #bdd3e8 !important;
    font-family: 'DM Mono', monospace !important;
    font-size: .82rem !important;
}

/* Fix autofill */
.form-control:-webkit-autofill,
.form-control:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 100px #f5f8fc inset !important;
    -webkit-text-fill-color: #0d1f33 !important;
}

/* ── Checkbox ── */
.form-check-input {
    background-color: #f5f8fc !important;
    border: 1px solid #d6e4f0 !important;
    border-radius: 5px !important;
    width: 16px !important; height: 16px !important;
    margin-top: 2px; cursor: pointer;
}
.form-check-input:checked { background-color: #297ecb !important; border-color: #297ecb !important; }
.form-check-input:focus { box-shadow: 0 0 0 3px rgba(41,126,203,.15) !important; }
.form-check-label {
    font-family: 'DM Sans', sans-serif !important;
    font-size: .8rem !important;
    color: #8da5be !important;
    cursor: pointer;
}

/* ── Botón ── */
.btn-corporate {
    width: 100%;
    padding: .78rem 1.25rem;
    background: #297ecb;
    border: none;
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: .875rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: .4px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: .6rem;
    box-shadow: 0 4px 14px rgba(41,126,203,.30);
    transition: background .18s ease, transform .15s ease, box-shadow .18s ease;
}
.btn-corporate:hover {
    background: #1b5fa0;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(41,126,203,.40);
}
.btn-corporate:active {
    background: #134678;
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(41,126,203,.20);
}
.btn-corporate::after {
    content: '→';
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px;
    background: rgba(255,255,255,.22);
    border-radius: 50%;
    font-size: .75rem; line-height: 1; flex-shrink: 0;
}

/* ── Footer note ── */
.login-footer-note {
    text-align: center;
    margin-top: 1.75rem; margin-bottom: 0;
    font-family: 'DM Mono', monospace;
    font-size: .65rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #bdd3e8;
}

/* ── Enlace recuperar contraseña ── */
.link-login { font-size: .78rem; color: #297ecb; text-decoration: none; transition: color .15s; }
.link-login:hover { color: #1b5fa0; }

/* ── Móvil ── */
@media (max-width: 520px) {
    body { padding: 0; justify-content: flex-start; }
    body::before { display: none; }

    .login-card {
        max-width: 100%; min-height: 100dvh;
        border-radius: 0; border: none;
        box-shadow: none; background: #fff;
        display: flex; flex-direction: column;
    }
    .login-card::before { flex-shrink: 0; }
    .login-card .card-body {
        padding: 2.5rem 1.6rem; flex: 1;
        display: flex; flex-direction: column; justify-content: center;
    }
}

@media (max-width: 360px) {
    .login-card .card-body { padding: 2rem 1.2rem; }
    .login-heading { font-size: 1.15rem; }
}