/* Pantalla de acceso del DSS — base: rpp-turnero/assets/css/login.css (mismo sistema visual RPP). */
*, *:before, *:after { box-sizing: border-box; }

html, body { min-height: 100%; }

/* ── Variables de color exactas del diseño ── */
:root {
    --lp-primary: #0d3b40;
    --lp-deep:    #082528;
    --lp-accent:  #14595f;
}

/* ── Shell de página ── */
.portal-login-page {
    min-height: 100vh;
    background: #f8fafc !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.portal-login-page .wrapper,
.portal-login-page .content-wrapper,
.portal-login-page .content,
.portal-login-page .limiter,
.portal-login-page .container_login {
    background: #f8fafc !important;
    border: 0 !important;
    box-shadow: none !important;
}

.portal-login-page .main-footer,
.portal-login-page .portal-footer,
.portal-login-page footer,
.portal-login-page .footer,
.portal-login-page .copyright,
.portal-login-page .security-footer,
.portal-login-page .social-links,
.portal-login-page .social-icons { display: none !important; }

.portal-login-page .wrapper { min-height: 100vh !important; }

/* ── Centrado ── */
.limiter { width: 100%; margin: 0 auto; min-height: 100vh; }

.container_login {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: #f8fafc;
}

/* ══════════════════════════════════════════════════════
   CARD principal  (rounded-3xl = 24px, 50/50, sin border)
══════════════════════════════════════════════════════ */
.login-reg-panel {
    width: min(1152px, 100%);
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 24px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 30px 80px -30px rgba(8,37,40,.25);
}

/* ══════════════════════════════════════════════════════
   PANEL IZQUIERDO
══════════════════════════════════════════════════════ */
.white-panel { background: #ffffff; }

.login-show {
    padding: 60px 64px;
    display: flex;
    flex-direction: column;
}

/* ── Brand ── */
.portal-auth-brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 15px;
}

.portal-auth-logo {
    display: block !important;
    height: 80px !important;
    width: auto !important;
    align-self: flex-start;
    margin-bottom: 8px;
}

.portal-auth-brand-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.portal-auth-brand-tile {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: var(--lp-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.portal-auth-tile-img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

.portal-auth-tile-initials {
    display: none;
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    letter-spacing: -.02em;
    align-items: center;
    justify-content: center;
    width: 100%; height: 100%;
}

.portal-auth-brand-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.portal-auth-brand-name {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: var(--lp-deep);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.portal-auth-brand-city {
    font-size: 10px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

/* Badge kicker — relleno tenue rgba, sin borde */
.portal-auth-kicker {
    display: inline-flex;
    align-self: flex-start;
    padding: 4px 12px;
    border-radius: 6px;
    background: rgba(13,59,64,.10);
    color: var(--lp-primary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Título */
.portal-auth-title {
    margin: 0 0 12px;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 36px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--lp-deep);
    letter-spacing: -0.025em;
}

/* Subtítulo */
.portal-auth-copy {
    margin: 0 0 40px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.625;
}

/* ── Inputs ── */
.form-group { margin-bottom: 16px; }

/* Contenedor con padding lateral — ícono flota dentro, SIN separador */
.portal-auth-input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 48px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    padding: 0 16px;
    transition: border-color .15s, box-shadow .15s;
}

.portal-auth-input-wrap:focus-within {
    border-color: var(--lp-primary);
    box-shadow: 0 0 0 3px rgba(13,59,64,.12);
}

/* Ícono pequeño oscuro 28×28px (bg-brand-deep = #082528) */
.portal-auth-input-icon {
    width: 28px; height: 28px;
    border-radius: 6px;
    background: var(--lp-deep);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

.portal-auth-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: var(--lp-deep);
    font-family: inherit;
    height: 100%;
}

.portal-auth-input::placeholder { color: #94a3b8; }

/* ── Botón primario auth (button y a) ── */
.portal-auth-submit {
    width: 100%;
    height: 48px;
    margin-top: 0;
    border: none;
    border-radius: 12px;
    background: var(--lp-primary);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background .15s, box-shadow .15s;
    font-family: inherit;
    text-decoration: none;
    box-sizing: border-box;
}
.portal-auth-submit:hover {
    background: var(--lp-deep);
    box-shadow: 0 10px 30px rgba(13,59,64,.30);
    color: #ffffff;
    text-decoration: none;
}

.portal-auth-arrow { font-size: 15px; line-height: 1; }

/* ── Contenedor de acciones (botones de formularios auth) ── */
.portal-auth-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
}

/* Botón secundario outline */
.portal-auth-secondary-outline {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    background: transparent;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    text-decoration: none;
    transition: border-color .15s, color .15s;
    font-family: inherit;
}
.portal-auth-secondary-outline:hover {
    border-color: #0d3b40;
    color: #0d3b40;
    text-decoration: none;
}

/* Strength card (mismos estilos que registro) */
.reg-strength-card {
    border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px 14px; background: #fff;
}
.reg-strength-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.reg-strength-text { font-size: 11px; font-weight: 600; color: #64748b; }
.reg-strength-label { font-size: 11px; font-weight: 700; color: #94a3b8; }
.reg-strength-bars { display: flex; gap: 4px; }
.reg-strength-bar { height: 6px; flex: 1; border-radius: 4px; background: #e2e8f0; transition: background .25s; }
.reg-pass-msg { margin-top: 8px; font-size: 11px; font-weight: 600; min-height: 16px; }

/* ── Fila remember + forgot (debajo del botón) ── */
.portal-auth-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 8px;
    font-size: 12px;
}

.portal-auth-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    cursor: pointer;
    user-select: none;
}

.portal-auth-remember input[type="checkbox"] {
    width: 14px; height: 14px;
    accent-color: var(--lp-primary);
    cursor: pointer;
}

.portal-auth-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--lp-primary);
    text-decoration: none;
    white-space: nowrap;
}

.portal-auth-link:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════════════
   PANEL DERECHO  (bg = #082528 + dos blobs blur)
══════════════════════════════════════════════════════ */
.register-info-box {
    background: var(--lp-deep);
    padding: 80px 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Blob superior-derecha */
.register-info-box::before {
    content: '';
    position: absolute;
    right: -80px; top: -80px;
    width: 288px; height: 288px;
    border-radius: 50%;
    background: rgba(13,59,64,.30);
    filter: blur(64px);
    pointer-events: none;
}

/* Blob inferior-izquierda */
.register-info-box::after {
    content: '';
    position: absolute;
    bottom: -96px; left: -64px;
    width: 288px; height: 288px;
    border-radius: 50%;
    background: rgba(20,89,95,.30);
    filter: blur(64px);
    pointer-events: none;
}

.portal-auth-feature {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Badge "ACCESO CIUDADANO" */
.portal-auth-chip {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 20px;
    padding: 4px 12px;
    border-radius: 6px;
    background: rgba(255,255,255,.10);
    color: rgba(255,255,255,.80);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.portal-auth-feature h2 {
    margin: 0 0 12px;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 36px;
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
    letter-spacing: -0.025em;
}

.portal-auth-feature > p {
    margin: 0 0 32px;
    font-size: 14px;
    line-height: 1.625;
    color: rgba(255,255,255,.70);
}

/* Lista con ícono CheckCircle2 (lucide-react, stroke #14595f) */
.portal-auth-list {
    list-style: none;
    margin: 0 0 40px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.portal-auth-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: rgba(255,255,255,.85);
}

.portal-auth-list li::before {
    content: '';
    width: 16px; height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314595f' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* Botón "REGÍSTRESE AQUÍ →" */
.portal-auth-register-btn {
    width: 100%;
    height: 48px;
    border-radius: 12px;
    border: none;
    background: #ffffff;
    color: var(--lp-deep);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background .15s;
    font-family: inherit;
}

.portal-auth-register-btn:hover { background: rgba(255,255,255,.90); }

/* Footer EPM */
.portal-auth-org-footer {
    margin: 32px 0 0;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,.40);
    font-weight: 400;
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .login-reg-panel   { grid-template-columns: 1fr; }
    .login-show        { padding: 56px 40px; }
    .register-info-box { padding: 56px 40px; }
}

@media (max-width: 640px) {
    .container_login           { padding: 20px 14px; }
    .login-show                { padding: 36px 24px; }
    .register-info-box         { padding: 36px 24px; }
    .portal-auth-title,
    .portal-auth-feature h2    { font-size: 28px; }
    .portal-auth-footer-row    { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ══════════════════════════════════════════════════════
   DSS — mensajes, botón con carga y cambio de clave
══════════════════════════════════════════════════════ */
.dss-auth-alert {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    margin-bottom: 16px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
    border: 1px solid transparent;
}
.dss-auth-alert i { margin-top: 2px; }
.dss-auth-alert--error { background: #fdf2f2; border-color: #f5c6c6; color: #9b2c2c; }
.dss-auth-alert--info  { background: #eef6f7; border-color: #cfe3e6; color: #0d3b40; }

.portal-auth-submit { display: flex !important; align-items: center; justify-content: center; gap: 10px; }
.pab-spin {
    display: none;
    width: 15px; height: 15px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.28);
    border-top-color: rgba(255,255,255,.9);
    animation: pab-rot .65s linear infinite;
    flex-shrink: 0;
}
@keyframes pab-rot { to { transform: rotate(360deg); } }
.portal-auth-submit.is-loading .pab-spin { display: block; }
.portal-auth-submit.is-loading { opacity: .72; pointer-events: none; cursor: wait; }

.dss-auth-toggle {
    border: 0;
    background: transparent;
    color: #64748b;
    padding: 0 4px;
    cursor: pointer;
    font-size: 14px;
}
.dss-auth-toggle:hover, .dss-auth-toggle:focus { color: #0d3b40; outline: none; }

.dss-auth-rules { list-style: none; margin: 4px 0 18px; padding: 0; font-size: 12px; color: #64748b; }
.dss-auth-rules li { display: flex; align-items: center; gap: 8px; padding: 2px 0; }
.dss-auth-rules li i { width: 14px; text-align: center; color: #94a3b8; }
.dss-auth-rules li.is-ok { color: #1f9d68; }
.dss-auth-rules li.is-ok i { color: #1f9d68; }

.dss-auth-secondary {
    display: block;
    text-align: center;
    margin-top: 14px;
    font-size: 12px;
    color: #64748b;
}
.dss-auth-secondary:hover { color: #0d3b40; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}


/* Evita que el contenido ensanche la columna en pantallas angostas */
.login-show, .register-info-box { min-width: 0; }
.portal-auth-kicker { white-space: normal; }
@media (max-width: 1024px) {
    .login-reg-panel { grid-template-columns: minmax(0, 1fr); }
}


/* Respaldo si no carga el logo */
.portal-auth-brand-fallback .portal-auth-tile-initials { display: flex; }
