
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    color-scheme: dark;
    --mint: #34d399;
    --violet: #a78bfa;
    --muted: #a5b5cc;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    font-family: Inter, system-ui, sans-serif;
    color: #f2f7ff;
    background:
        radial-gradient(
            ellipse at 18% 14%,
            rgba(52, 211, 153, .15),
            transparent 38%
        ),
        radial-gradient(
            ellipse at 85% 83%,
            rgba(167, 139, 250, .18),
            transparent 42%
        ),
        linear-gradient(135deg, #091322, #13243c);
    display: grid;
    place-items: center;
    padding: 28px 16px;
}

/* CONTENEDOR */

.auth-shell {
    width: min(100%, 470px);
}

/* IDENTIDAD CIVORA */

.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 28px;
    text-decoration: none;
    color: #f8fafc;
    font-size: 29px;
    font-weight: 800;
    letter-spacing: -1.3px;
    line-height: 1;
}

.brand-logo {
    display: block;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    filter: drop-shadow(
        0 0 12px rgba(52, 211, 153, .12)
    );
}

.brand-dot {
    color: var(--mint);
}

/* TARJETA DE LOGIN */

.login-card {
    padding: 38px;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, .095),
        rgba(255, 255, 255, .035)
    );
    border: 1px solid rgba(190, 215, 255, .2);
    border-radius: 24px;
    box-shadow: 0 26px 90px rgba(0, 0, 0, .33);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

h1 {
    font-size: clamp(25px, 4vw, 32px);
    letter-spacing: -.9px;
    margin: 0 0 9px;
}

.subtitle {
    color: var(--muted);
    font-size: 14px;
    margin: 0 0 28px;
    line-height: 1.6;
}

/* FORMULARIO */

.field {
    margin-top: 18px;
}

label {
    display: block;
    margin-bottom: 9px;
    font-size: 13px;
    font-weight: 600;
    color: #dbe7f8;
}

input {
    width: 100%;
    padding: 14px 15px;
    background: rgba(8, 22, 40, .65);
    border: 1px solid rgba(178, 204, 238, .24);
    border-radius: 12px;
    color: #f8fafc;
    font: inherit;
    font-size: 15px;
    outline: none;
    transition:
        border-color .2s,
        box-shadow .2s;
}

input:hover {
    border-color: rgba(178, 204, 238, .45);
}

input:focus-visible {
    border-color: var(--mint);
    box-shadow: 0 0 0 3px rgba(52, 211, 153, .16);
}

/* BOTÓN PRINCIPAL */

.submit {
    width: 100%;
    margin-top: 27px;
    padding: 15px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(
        110deg,
        #34d399,
        #29c5b0
    );
    color: #082820;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 7px 25px rgba(52, 211, 153, .16);
    transition:
        transform .2s,
        box-shadow .2s;
}

.submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(52, 211, 153, .32);
}

.submit:active {
    transform: translateY(0);
}

.submit:focus-visible,
a:focus-visible {
    outline: 2px solid var(--mint);
    outline-offset: 4px;
}

/* MENSAJES */

.message {
    margin: 18px 0;
    padding: 13px 14px;
    border-radius: 11px;
    font-size: 13px;
    line-height: 1.5;
}

.success {
    background: rgba(52, 211, 153, .12);
    border: 1px solid rgba(52, 211, 153, .3);
    color: #a7f3d0;
}

.error {
    background: rgba(248, 113, 113, .12);
    border: 1px solid rgba(248, 113, 113, .3);
    color: #fecaca;
}

/* PIE DE PÁGINA */

.footer {
    text-align: center;
    margin-top: 25px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}

.footer a {
    color: #bca5ff;
    font-weight: 700;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.legal {
    text-align: center;
    margin-top: 24px;
    color: #8496b0;
    font-size: 12px;
}

/* RESPONSIVE */

@media (max-width: 480px) {
    .login-card {
        padding: 27px 23px;
        border-radius: 19px;
    }

    .brand {
        margin-bottom: 23px;
        font-size: 27px;
    }

    .brand-logo {
        width: 44px;
        height: 44px;
    }
}

/* ACCESIBILIDAD */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
    }
}
