/* Pantalla de acceso: aislada del dashboard y de la entrada privada de GOD. */
:root { color-scheme: light; font-family: "Segoe UI", system-ui, -apple-system, sans-serif; color: #1d3047; background: #f4f6f8; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
a { color: #235f9e; text-underline-offset: 4px; }
button { cursor: pointer; }
.hidden, [hidden] { display: none !important; }
:focus-visible { outline: 3px solid #267ed5; outline-offset: 4px; }
.skip-link { position: absolute; top: 12px; left: 16px; padding: 12px 18px; background: white; z-index: 5; transform: translateY(-160%); border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }
.access-page { width: min(1200px, calc(100% - 96px)); min-height: 100svh; margin: auto; display: flex; flex-direction: column; justify-content: center; padding: 30px 0 18px; }
.access-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 4px 25px; }
.medixe-wordmark { display: block; width: 172px; height: auto; mix-blend-mode: multiply; }
.header-caption { color: #637489; font-size: 10px; letter-spacing: 2px; font-weight: 650; }
.access-layout { display: grid; grid-template-columns: 46% 54%; background: #fff; border: 1px solid #dde5ed; border-radius: 26px; overflow: hidden; box-shadow: 0 18px 65px -35px #233e653d; }
.welcome-panel { background: #0c2c49; color: #fff; padding: 48px 48px 36px; display: flex; flex-direction: column; position: relative; overflow: hidden; min-width: 0; }
.welcome-panel::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 100% 80%, #146e7c66, transparent 65%); }
.welcome-copy, .welcome-footer { position: relative; z-index: 1; }
.eyebrow { display: block; font-size: 9px; letter-spacing: 1.8px; line-height: 1.8; color: #c0d4e4; font-weight: 600; }
.welcome-copy h2 { font-size: clamp(38px, 4vw, 55px); font-weight: 550; letter-spacing: -2px; line-height: 1.12; margin: 28px 0 20px; }
.welcome-copy h2 em { font-style: normal; color: #8ad8d1; }
.welcome-copy p { font-size: 15px; line-height: 1.85; color: #bed0df; margin: 0; }
.welcome-art { position: relative; height: 228px; width: 100%; max-width: 370px; margin: 16px auto 12px; flex: 1; min-height: 180px; }
.orbit { position: absolute; top: 50%; left: 50%; border: 1px solid #9dcfda26; border-radius: 50%; transform: translate(-50%, -50%) rotate(-24deg); }
.orbit-outer { width: 100%; height: 75%; }
.orbit-inner { width: 73%; height: 100%; transform: translate(-50%, -50%) rotate(32deg); }
.orbit-core { position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; transform: translate(-50%, -50%); border: 1px solid #a1e2dd40; background: #a1e2dd0c; border-radius: 28px; box-shadow: 0 0 60px #6cd1cf16; display: grid; place-items: center; }
.orbit-core span { position: relative; width: 36px; height: 36px; }
.orbit-core span::before, .orbit-core span::after { content: ""; position: absolute; border-radius: 3px; background: #91d9d3; }
.orbit-core span::before { width: 12px; height: 36px; left: 12px; }
.orbit-core span::after { width: 36px; height: 12px; top: 12px; }
.orbit-label { position: absolute; padding: 9px 16px; border: 1px solid #719ba74f; background: #173f54; border-radius: 9px; color: #d1e7ed; font-size: 11px; letter-spacing: .3px; box-shadow: 0 8px 20px #061c301a; }
.label-agenda { top: 12%; left: 10%; }
.label-atencion { top: 37%; right: 0; }
.label-documentos { bottom: 4%; left: 10%; }
.orbit-point { position: absolute; right: 25%; bottom: 14%; width: 6px; height: 6px; background: #8ad8d1; border-radius: 50%; box-shadow: 0 0 0 5px #8ad8d118; }
.welcome-footer { display: flex; align-items: center; gap: 15px; }
.welcome-line { width: 28px; height: 1px; background: #8ad8d1; flex: none; }
.welcome-footer p { margin: 0; color: #bed0df; font-size: 12px; line-height: 1.75; }
.welcome-footer strong { color: #e1edf5; font-weight: 500; }
.access-panel { display: flex; align-items: center; justify-content: center; padding: 44px 58px; min-width: 0; }
.login-shell { width: 100%; max-width: 390px; }
.tenant-login-brand { display: flex; align-items: center; gap: 12px; min-height: 48px; padding-bottom: 25px; border-bottom: 1px solid #e9eef3; margin-bottom: 28px; }
.tenant-login-logo { width: 48px; height: 48px; object-fit: contain; flex: none; }
.tenant-identity { min-width: 0; }
.tenant-identity strong { display: block; color: #25415e; font-size: 16px; line-height: 1.4; font-weight: 650; overflow-wrap: anywhere; }
.tenant-identity span { display: block; font-size: 11px; color: #657589; line-height: 1.6; margin-top: 3px; }
.login-heading { margin-bottom: 28px; }
.login-heading h1 { font-size: 29px; line-height: 1.2; letter-spacing: -.85px; font-weight: 650; margin: 0 0 10px; color: #19324d; }
.login-heading p { margin: 0; font-size: 13px; line-height: 1.65; color: #637489; }
.login-form { display: flex; flex-direction: column; gap: 19px; }
.field-wrap { min-width: 0; }
.field-wrap label { display: block; margin: 0 0 9px; font-size: 12px; color: #344c65; font-weight: 650; }
.field-wrap input { width: 100%; min-height: 51px; border: 1px solid #ced9e4; border-radius: 9px; color: #1d3047; background: #fcfdff; font-size: 14px; padding: 14px; transition: border-color .15s, box-shadow .15s; }
.field-wrap input::placeholder { color: #748295; opacity: 1; }
.field-wrap input:focus { border-color: #287ec3; outline: 0; box-shadow: 0 0 0 3px #287ec31a; background: white; }
.password-field { position: relative; }
.password-field:has(.password-toggle:not([hidden])) input { padding-right: 82px; }
.password-toggle { position: absolute; right: 4px; top: 4px; min-height: 44px; min-width: 70px; border: 0; background: transparent; border-radius: 6px; color: #326498; font-size: 11px; font-weight: 600; padding: 0 10px; }
.password-toggle:hover { background: #edf4fb; }
.login-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 51px; border: 1px solid #1265ac; border-radius: 9px; background: #126ab5; color: #fff; font-size: 14px; font-weight: 650; padding: 13px 14px; box-shadow: 0 5px 12px #126ab51c; transition: background .15s; }
.login-btn:hover { background: #0d589a; }
.login-btn:disabled { cursor: wait; background: #427aa9; border-color: #427aa9; }
.login-btn:disabled::before { content: ""; width: 13px; height: 13px; border: 2px solid #ffffff60; border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.forgot-link, .link-btn { display: flex; width: fit-content; min-height: 44px; align-items: center; justify-content: center; margin: 8px auto 0; font-size: 12px; text-decoration: none; text-align: center; border: 0; background: transparent; padding: 8px 12px; color: #235f9e; border-radius: 6px; }
.forgot-link:hover, .link-btn:hover { text-decoration: underline; background: #f3f7fb; }
.password-reset-form .link-btn { margin-top: -8px; }
.status-message { margin: 0; padding: 12px 14px; background: #edf5fc; color: #244e73; border: 1px solid #d0e3f4; border-radius: 8px; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.status-message:empty { display: none; }
.status-message.error, .status-message[data-kind="error"] { background: #fff3f2; color: #9c3232; border-color: #f0cecb; }
.status-message[data-kind="success"] { background: #eff8f3; color: #246546; border-color: #cde8d9; }
.access-note { margin-top: 29px; display: flex; gap: 12px; align-items: flex-start; }
.note-rule { flex: none; width: 2px; height: 31px; background: #d8e4ed; border-radius: 2px; margin-top: 3px; }
.access-note p { color: #697b8b; font-size: 11px; line-height: 1.75; margin: 0; }
.access-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #647488; font-size: 10px; padding: 14px 4px 0; letter-spacing: .1px; }
.access-footer a { display: inline-flex; align-items: center; min-height: 44px; gap: 12px; text-decoration: none; font-size: 11px; }
.access-footer a:hover { text-decoration: underline; }
@media (min-width: 1400px) { .access-layout { min-height: 650px; } }
@media (max-width: 1050px) { .access-page { width: calc(100% - 48px); } .welcome-panel { padding: 38px 30px 30px; } .access-panel { padding: 38px 32px; } .login-heading h1 { font-size: 26px; } .eyebrow { letter-spacing: 1.1px; } }
@media (max-width: 760px) { .access-page { width: min(530px, calc(100% - 32px)); padding-top: 22px; justify-content: flex-start; } .access-header { padding: 0 4px 20px; } .medixe-wordmark { width: 142px; } .header-caption { font-size: 8px; letter-spacing: 1px; max-width: 90px; text-align: right; line-height: 1.8; } .access-layout { grid-template-columns: 1fr; border-radius: 20px; } .welcome-panel { padding: 25px 28px; } .welcome-copy h2 { font-size: 32px; margin: 12px 0 0; letter-spacing: -1px; } .welcome-copy h2 br { display: none; } .welcome-copy h2 br::after { content: " "; } .welcome-copy p, .welcome-art, .welcome-footer { display: none; } .eyebrow { font-size: 8px; letter-spacing: 1.15px; } .access-panel { padding: 30px 28px; } .tenant-login-brand { margin-bottom: 24px; padding-bottom: 21px; } .login-heading { margin-bottom: 24px; } .login-heading h1 { font-size: 27px; } .field-wrap input { font-size: 16px; } .access-footer { flex-wrap: wrap; justify-content: center; text-align: center; gap: 0; padding-top: 20px; } .access-footer span { width: 100%; } .access-footer a span { width: auto; } }
@media (max-width: 360px) { .access-panel { padding: 26px 20px; } .welcome-panel { padding: 24px 20px; } .welcome-copy h2 { font-size: 28px; } .login-heading h1 { font-size: 24px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (forced-colors: active) { .login-btn, .password-toggle { border: 1px solid ButtonText; } .welcome-panel { border-bottom: 1px solid CanvasText; } }
