/*
 * Gestión de Personas - Acceso RRHH
 * Estilos encapsulados en la pantalla de login (sin afectar INSPINIA).
 */
:root {
    --rh-ink: #142b41;
    --rh-muted: #748398;
    --rh-teal: #0da88f;
    --rh-teal-dark: #078a77;
    --rh-border: rgba(29, 63, 92, .13);
}
* { box-sizing: border-box; }
html { min-height: 100%; }
body.rh-auth-page {
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
    background: radial-gradient(circle at 4% 5%, rgba(13,168,143,.09), transparent 38%),
                radial-gradient(circle at 95% 95%, rgba(24,72,118,.11), transparent 44%),
                #f1f5f8;
    color: var(--rh-ink);
    font-family: 'Segoe UI', Inter, -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button { cursor: pointer; }
.rh-auth-layout {
    width: min(1180px, calc(100% - 72px));
    min-height: min(736px, calc(100svh - 78px));
    margin: 39px auto;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(410px, .92fr);
    border: 1px solid rgba(51, 78, 104, .08);
    border-radius: 22px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 24px 90px rgba(32, 60, 84, .10), 0 5px 18px rgba(30, 55, 78, .045);
}
.rh-brand-panel {
    color: #fff;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 690px;
    overflow: hidden;
    padding: 37px 48px 34px;
    isolation: isolate;
    background: linear-gradient(150deg, #102a43 0%, #173b55 52%, #0d4b58 100%);
}
.rh-brand-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: repeating-linear-gradient(127deg, rgba(255,255,255,.014) 0 1px, transparent 1px 19px);
    pointer-events: none;
}
.rh-brand-glow { position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.rh-brand-glow--top {
    width: 490px; height: 490px; right: -260px; top: -170px;
    background: radial-gradient(circle, rgba(29, 211, 185, .25), rgba(37, 190, 181, .03) 66%, transparent 70%);
}
.rh-brand-glow--bottom {
    width: 420px; height: 420px; left: -240px; bottom: -245px;
    background: radial-gradient(circle, rgba(59, 125, 208, .25), transparent 70%);
}
.rh-brand-top { display: flex; gap: 12px; align-items: center; }
.rh-brand-mark {
    width: 42px; height: 42px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid rgba(124, 250, 224, .24);
    border-radius: 12px;
    color: #b6f8eb;
    background: rgba(65, 213, 189, .13);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.rh-brand-mark svg { width: 30px; height: 30px; }
.rh-brand-company { color: rgba(255,255,255,.90); font-size: 11px; font-weight: 750; letter-spacing: 1.5px; }
.rh-brand-company-dot { display:inline-block; width: 4px; height: 4px; border-radius: 50%; vertical-align: middle; margin:0 7px; background: #65ddc6; }
.rh-brand-content { position: relative; margin-top: 40px; }
.rh-brand-eyebrow {
    display: inline-flex; align-items: center; gap: 9px;
    font-size: 10px; font-weight: 750; letter-spacing: 1.8px;
    color: #9beadc;
}
.rh-brand-spark { display:inline-block; width: 7px; height: 7px; border-radius: 50%; background: #44d6b9; box-shadow: 0 0 0 4px rgba(68,214,185,.11); }
.rh-brand-content h1 {
    font-size: clamp(31px, 3.25vw, 42px);
    font-weight: 680;
    letter-spacing: -1.3px;
    line-height: 1.19;
    max-width: 480px;
    margin: 22px 0 15px;
}
.rh-brand-description {
    color: rgba(226,243,250,.72);
    font-size: 13px;
    line-height: 1.85;
    max-width: 405px;
    margin: 0;
}
.rh-feature-list { display: grid; gap: 20px; margin-top: 43px; }
.rh-feature { display: flex; gap: 14px; align-items: center; }
.rh-feature-icon {
    display: inline-flex; align-items: center; justify-content: center;
    flex: 0 0 42px; height: 42px;
    border-radius: 12px;
    background: rgba(132, 207, 215, .095);
    color: #8fe3d4;
    border: 1px solid rgba(196, 253, 245, .12);
    font-size: 15px;
}
.rh-feature strong { display: block; color: rgba(255,255,255,.91); font-size: 12px; font-weight: 620; }
.rh-feature small { display: block; margin-top: 5px; color: rgba(219,239,245,.61); font-size: 11px; }
.rh-brand-bottom { display:flex; flex-direction:column; gap: 16px; color: rgba(223,241,249,.52); font-size: 10px; letter-spacing: .4px; }
.rh-bottom-line { display:block; width: 46px; height: 2px; background: rgba(117,235,212,.65); border-radius: 2px; }

.rh-access-panel { min-width:0; display: flex; flex-direction: column; justify-content: space-between; padding: 43px clamp(30px, 5.1vw, 73px) 29px; }
.rh-mobile-brand { display: none; }
.rh-access-content { width: 100%; max-width: 395px; margin: auto; padding: 38px 0 30px; }
.rh-login-label { display: inline-flex; align-items: center; gap: 9px; color: var(--rh-teal-dark); font-size: 10px; font-weight: 750; letter-spacing: 1.5px; }
.rh-login-label-dot { width: 7px; height: 7px; border-radius: 50%; background: #19b69a; box-shadow: 0 0 0 4px rgba(20,166,141,.11); }
.rh-access-content h2 { margin: 16px 0 10px; color: var(--rh-ink); font-size: clamp(27px, 3vw, 34px); font-weight: 690; letter-spacing: -.85px; }
.rh-login-intro { margin: 0 0 32px; color: var(--rh-muted); font-size: 12.5px; line-height: 1.85; }
.rh-login-form { display: flex; flex-direction: column; gap: 21px; }
.rh-form-group { display:flex; flex-direction:column; gap: 9px; }
.rh-form-group label { color: #30465b; font-size: 12px; font-weight: 630; }
.rh-form-label-row { display:flex; justify-content:space-between; }
.rh-input-wrapper { position: relative; display:flex; align-items: center; }
.rh-input-icon { position:absolute; left: 16px; top: 50%; transform:translateY(-50%); font-size: 15px; color: #91a3b5; pointer-events:none; }
.rh-input-wrapper input {
    display:block; width:100%; height: 49px;
    padding: 0 15px 0 47px;
    border: 1px solid #dbe5eb;
    border-radius: 10px;
    outline: none;
    background: rgba(245,249,252,.72);
    color: #263e53;
    box-shadow: 0 1px 2px rgba(21,52,72,.012);
    font-size: 12.5px;
    transition: background .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.rh-input-wrapper input::placeholder { color: #9caab8; }
.rh-input-wrapper input:hover { background: #fff; border-color: #b6cad4; }
.rh-input-wrapper input:focus { background: #fff; border-color: #26b39b; box-shadow: 0 0 0 3px rgba(34,169,146,.11); }
.rh-input-wrapper--password input { padding-right: 52px; }
.rh-toggle-password {
    position:absolute; right: 7px; top: 50%; transform: translateY(-50%);
    border:0; border-radius: 8px; width:37px; height: 37px;
    display: inline-flex; justify-content:center; align-items:center;
    background: transparent; color: #8799ab; font-size: 14px;
}
.rh-toggle-password:hover, .rh-toggle-password:focus-visible { background: rgba(17,91,111,.075); color: #0b907f; }
.rh-login-submit {
    display: flex; align-items: center; justify-content: center; gap: 15px;
    width: 100%; height: 49px; margin-top: 3px;
    border:0; border-radius: 10px;
    background: linear-gradient(100deg,#0d9f89,#0ca78f);
    color: white; font-size: 12.5px; font-weight: 700;
    box-shadow: 0 10px 20px rgba(8,159,136,.18);
    transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.rh-login-submit:hover { background: linear-gradient(100deg,#078873,#078d7a); box-shadow: 0 12px 25px rgba(8,159,136,.22); }
.rh-login-submit:active { transform:translateY(1px); }
.rh-login-submit:focus-visible { outline: 3px solid rgba(20,180,153,.3); outline-offset: 3px; }
.rh-login-submit--loading { cursor: progress; }
.rh-access-notice { display:flex; align-items:flex-start; gap: 10px; margin-top: 34px; padding-top: 23px; border-top: 1px solid var(--rh-border); color: #8b9bac; font-size: 11px; line-height:1.65; }
.rh-access-notice i { color: #18aa91; font-size: 14px; margin-top: 2px; }
.rh-access-footer { display:flex; justify-content:center; gap: 13px; align-items:center; flex-wrap:wrap; color: #a1acb7; font-size: 10px; }
.rh-footer-separator { display:inline-block; width:3px; height:3px; border-radius:50%; background: #a2b0bb; }
.rh-login-alert { display:flex; align-items:flex-start; gap: 12px; padding: 13px 14px; margin: -12px 0 24px; border-radius: 10px; background: rgba(207,73,73,.075); border: 1px solid rgba(193,64,64,.14); color: #9a3c3c; font-size: 12px; line-height: 1.6; }
.rh-login-alert > i { flex:none; margin-top:2px; }
.rh-login-validation ul { list-style: none; padding: 0; margin: 0; }
.rh-login-validation li { margin: 0; }
.rh-login-validation:empty { display:none; }

@media (max-width: 950px) {
    .rh-auth-layout { grid-template-columns: minmax(0,1fr) minmax(360px,.92fr); width: calc(100% - 32px); margin:16px auto; min-height: calc(100svh - 32px); }
    .rh-brand-panel { padding: 34px 32px; }
    .rh-access-panel { padding: 30px 32px 25px; }
    .rh-brand-content h1 { font-size: 34px; }
}
@media (max-width: 720px) {
    .rh-auth-page { background: #f1f5f8; }
    .rh-auth-layout { grid-template-columns: 1fr; width: min(500px, calc(100% - 28px)); margin: 14px auto; min-height: calc(100svh - 28px); border-radius: 18px; }
    .rh-brand-panel { display: none; }
    .rh-mobile-brand { display: flex; gap: 10px; align-items: center; font-weight: 700; color: #234458; font-size: 13px; }
    .rh-mobile-brand small { display:block; margin-top:3px; color: #8a9dad; font-size: 10px; font-weight: 500; }
    .rh-mobile-brand-icon { width:38px; height:38px; flex:none; border-radius:10px; background: rgba(19,165,139,.12); color:#0c9c84; display:flex; align-items:center; justify-content:center; }
    .rh-access-panel { min-height: calc(100svh - 28px); padding: 27px 26px 23px; }
    .rh-access-content { padding: 34px 0 44px; }
    .rh-login-intro { margin-bottom: 28px; }
}
@media (max-width: 380px) {
    .rh-auth-layout { width:100%; margin:0; border-radius:0; min-height:100svh; }
    .rh-access-panel { padding: 22px 20px; }
    .rh-access-content h2 { font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) { .rh-input-wrapper input, .rh-login-submit { transition: none; } }
