﻿:root {
    --navy: #0b1736;
    --navy2: #0a2148;
    --gold: #f6c500;
    --ink: #0f172a;
    --card: #ffffff;
    --soft: rgba(255,255,255,.78);
}

body {
    min-height: 100vh;
    background: radial-gradient(900px 600px at 20% 20%, rgba(246,197,0,.16), transparent 60%), radial-gradient(900px 600px at 80% 30%, rgba(80,140,255,.14), transparent 55%), linear-gradient(135deg, var(--navy), var(--navy2));
    color: #fff;
    overflow-x: hidden;
}

.bg-photo {
    position: fixed;
    inset: 0;
    background: url('/img/login-hero.jpg') center/cover no-repeat;
    opacity: .22;
    filter: blur(2px) saturate(1.05);
    transform: scale(1.05);
    z-index: -2;
}

.bg-vignette {
    position: fixed;
    inset: 0;
    background: radial-gradient(1200px 800px at 50% 40%, rgba(0,0,0,.10), rgba(0,0,0,.55));
    z-index: -1;
}

.topbar {
    width: 100%;
    padding: 18px 18px 0;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.lang-pill {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: .85rem;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.20);
    user-select: none;
}

    .lang-pill.active {
        background: var(--gold);
        border-color: var(--gold);
        color: #09122a;
    }

.wrap {
    min-height: calc(100vh - 58px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 26px 14px 34px;
}

.shell {
    width: 100%;
    max-width: 720px;
}

.brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    margin-bottom: 14px;
}

.logo-box {
    width: 86px;
    height: 86px;
    border-radius: 18px;
    border: 2px dashed rgba(255,255,255,.38);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: rgba(255,255,255,.78);
    letter-spacing: .4px;
    background: rgba(255,255,255,.06);
    backdrop-filter: blur(8px);
}

.title {
    font-weight: 950;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    margin: 0;
    letter-spacing: .2px;
}

.subtitle {
    margin: 0;
    color: rgba(255,255,255,.85);
    max-width: 70ch;
    line-height: 1.45;
}

.cardx {
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 22px;
    box-shadow: 0 22px 60px rgba(0,0,0,.28);
    backdrop-filter: blur(12px);
    overflow: hidden;
}

.cardx-top {
    padding: 18px 20px 0;
}

.cardx-body {
    padding: 18px 20px 20px;
}

.badge-line {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.mini-badge {
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.14);
    font-weight: 800;
    font-size: .85rem;
    color: rgba(255,255,255,.90);
}

.form-label {
    font-weight: 800;
    color: rgba(255,255,255,.92);
    margin-bottom: 6px;
}

.form-control {
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(15,23,42,.12);
    border-radius: 12px;
    padding: 12px 14px;
}

    .form-control:focus {
        border-color: rgba(246,197,0,.60);
        box-shadow: 0 0 0 .25rem rgba(246,197,0,.22);
    }

.btn-ghost {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.22);
    color: #fff;
    font-weight: 900;
    border-radius: 12px;
    padding: 12px 14px;
}

    .btn-ghost:hover {
        background: rgba(255,255,255,.16);
        color: #fff;
    }

.btn-outline-soft {
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.22);
    color: #fff;
    font-weight: 900;
    border-radius: 12px;
    padding: 12px 14px;
}

    .btn-outline-soft:hover {
        background: rgba(255,255,255,.14);
        color: #fff;
    }

.links a {
    color: rgba(255,255,255,.92);
    text-decoration: none;
    font-weight: 800;
}

    .links a:hover {
        text-decoration: underline;
    }

.legal {
    text-align: center;
    margin-top: 14px;
    color: rgba(255,255,255,.70);
    font-size: .9rem;
}

/* Stepper */
.stepper {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 10px 0 0;
}

.step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    font-weight: 900;
    color: rgba(255,255,255,.90);
    font-size: .9rem;
}

.dot {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    font-weight: 950;
}

.step.active {
    background: rgba(246,197,0,.18);
    border-color: rgba(246,197,0,.35);
}

    .step.active .dot {
        background: var(--gold);
        border-color: var(--gold);
        color: #09122a;
    }

@media (max-width: 575.98px) {
    .shell {
        max-width: 520px;
    }
}

.btn-gold {
    font-weight: 950;
    letter-spacing: .3px;
    border-radius: 12px;
    padding: 12px 14px;
}

/* Fix: hover/focus para botón dorado */
.btn-gold,
.btn-gold:link,
.btn-gold:visited {
    background: var(--gold) !important;
    border-color: var(--gold) !important;
    color: #09122a !important;
}

    .btn-gold:hover,
    .btn-gold:focus,
    .btn-gold:focus-visible,
    .btn-gold:active {
        background: var(--gold) !important; /* mantiene amarillo */
        border-color: var(--gold) !important;
        color: #09122a !important; /* asegura contraste */
        filter: brightness(.95); /* efecto hover */
        box-shadow: 0 0 0 .25rem rgba(246,197,0,.22) !important;
    }

    .btn-gold:active {
        transform: translateY(1px);
    }

/* Password UX */
#password-rules {
    color: rgba(255,255,255,.75);
}

    #password-rules .rule {
        margin-bottom: 2px;
    }

        #password-rules .rule.valid {
            color: #7CFF9B;
            font-weight: 800;
        }

        #password-rules .rule.invalid {
            color: #FF9B9B;
            font-weight: 800;
        }

.pw-meter .progress {
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    overflow: hidden;
}

#pwBar {
    transition: width .18s ease;
}

.pw-weak {
    background: #ff6b6b !important;
}

.pw-medium {
    background: #f6c500 !important;
}
/* tu gold */
.pw-strong {
    background: #2ee59d !important;
}

#confirmLive.ok {
    color: #7CFF9B !important;
}

#confirmLive.bad {
    color: #FF9B9B !important;
}

/* Show/Hide password icon (sin cambiar layout) */
.pw-wrap {
    position: relative;
}

.pw-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: rgba(15,23,42,.70);
}

    .pw-toggle:hover {
        background: rgba(15,23,42,.06);
    }

    .pw-toggle:focus {
        outline: none;
        box-shadow: 0 0 0 .25rem rgba(246,197,0,.18);
    }

/* deja espacio para el icono */
.pw-wrap .form-control {
    padding-right: 52px;
}

/* Caps Lock warning */
#capsWarning {
    color: #f6c500; /* usa tu gold */
    background: rgba(246,197,0,.15);
    border: 1px solid rgba(246,197,0,.35);
    padding: 6px 10px;
    border-radius: 10px;
}

/* Logos (Auth) */
.logo-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 14px;
}

/* Logo Policía (vertical) */
.logo-ppr {
    height: 92px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.25));
}

/* Logo Reclutamiento (redondo) */
.logo-reclutamiento {
    height: 92px;
    width: 92px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    padding: 4px;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.25));
}

/* Responsive */
@media (max-width: 480px) {
    .logo-ppr {
        height: 72px;
    }

    .logo-reclutamiento {
        height: 72px;
        width: 72px;
    }
}
