:root { font-family: "Segoe UI", system-ui, sans-serif; color: #172a4a; background: #e9eef4; color-scheme: light; }
* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 2px solid #0758d8; outline-offset: 3px; }
h1:focus { outline: none; }
.blue { color: #0758d8; } .red { color: #e5222a; } .green { color: #159447; }
.login-page { min-height: 100svh; padding: 22px 18px 24px; background: linear-gradient(180deg,#ffffff0a 0%,#ffffff12 34%,#eff4f928 64%,#e9eef478 100%),url("images/login_tower_ayn10.png") center top / cover fixed; }
.login-content { max-width: 480px; margin: 0 auto; }
.brand-header { text-align: center; }
.app-logo { width: 94px; height: 94px; padding: 7px; object-fit: cover; background: white; border-radius: 22px; box-shadow: 0 8px 18px #082b6335; }
h1 { font-size: 34px; line-height: 1; letter-spacing: -.5px; font-weight: 900; margin: 14px 0 8px; color: #082b63; text-shadow: 0 0 12px white; }
h1 span { color: #e5222a; }
.brand-location { margin: 0; font-size: 20px; font-weight: 600; color: #4e5664; text-shadow: 0 0 10px white; }
.security-divider { width: 170px; margin: 10px auto 9px; display: flex; align-items: center; gap: 10px; color: #e5222a; }
.security-divider i { flex: 1; height: 1.3px; background: #0758d8; }
.security-divider i:last-child { background: #159447; }
.tagline { margin: 0; font-size: 14.5px; line-height: 1.35; font-weight: 600; color: #313a48; text-shadow: 0 0 8px white; }
.glass { border: 1.25px solid #ffffffc7; background: linear-gradient(135deg,#ffffffc7,#ffffffad 54%,#ddeaff6b); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 14px 28px #0e294c3d; }
.login-card { position: relative; border-radius: 26px; margin-top: 48px; padding: 53px 22px 18px; }
.shield-badge { position: absolute; top: -31px; left: calc(50% - 31px); width: 62px; height: 62px; display: grid; place-items: center; border-radius: 50%; border: 1px solid #e0e5ec; background: white; color: #0758d8; box-shadow: 0 5px 12px #082b6324; }
.shield-badge svg { width: 31px; height: 31px; }
h2 { color: #082b63; text-align: center; font-size: 24px; font-weight: 900; margin: 0 0 3px; }
.card-description { color: #697386; text-align: center; font-size: 13.5px; line-height: 1.35; margin: 0 0 18px; }
.field-group { margin-bottom: 16px; }
.field-group > label:not(.sr-only) { display: block; margin: 0 0 6px 2px; font-size: 12px; font-weight: 600; }
.input-wrap { display: flex; align-items: center; min-height: 56px; border: 1px solid #d8dde6; border-radius: 14px; background: #ffffff94; padding-left: 14px; color: #0758d8; }
.input-wrap:focus-within { border-color: #0758d8; box-shadow: 0 0 0 1px #0758d8; }
.input-wrap > svg, .at-icon { flex: 0 0 24px; }
.at-icon { font-size: 25px; line-height: 1; }
.input-wrap input { min-width: 0; width: 100%; border: 0; background: transparent; padding: 16px 10px; color: #172a4a; outline: none; font-size: 14.5px; font-weight: 600; }
.input-wrap input::placeholder { color: #8b94a5; font-weight: 500; opacity: 1; }
.eye-button { display: grid; place-items: center; flex: 0 0 46px; height: 48px; border: 0; border-radius: 12px; background: transparent; color: #727b8a; }
.form-options { display: flex; align-items: center; justify-content: space-between; gap: 4px 12px; flex-wrap: wrap; margin-top: -11px; margin-bottom: 11px; }
.remember { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 13px; cursor: pointer; }
.remember input { width: 18px; height: 18px; accent-color: #0758d8; margin: 0; }
.text-button { background: transparent; border: 0; min-height: 44px; padding: 4px 0; font-size: 13px; font-weight: 700; }
.login-button { display: flex; justify-content: center; align-items: center; gap: 10px; width: 100%; min-height: 56px; border: 0; border-radius: 14px; background: linear-gradient(90deg,#e5222a,#145dd7 52%,#159447); box-shadow: 0 8px 16px #145dd738; color: white; font-size: 18px; font-weight: 800; }
.login-button:active { filter: brightness(.9); }
.account-request { display: flex; align-items: center; justify-content: center; gap: 4px; flex-wrap: wrap; margin-top: 10px; font-size: 12.5px; font-weight: 600; color: #64748b; }
.account-request button { font-size: 12.5px; }
.brand-footer { border-radius: 20px; padding: 14px 16px 12px; margin-top: 12px; text-align: center; }
.footer-logos { display: flex; align-items: center; gap: 20px; height: 52px; margin-bottom: 10px; }
.footer-logos img { width: calc(50% - 10px); height: 52px; object-fit: contain; }
.brand-footer > strong { font-size: 13px; font-weight: 900; color: #082b63; }
.brand-footer > p { font-size: 10.5px; color: #5f6877; margin: 3px 0 7px; }
.brand-rule { height: 2px; background: linear-gradient(90deg,#0758d8 0% 33.33%,#e5222a 33.33% 66.66%,#159447 66.66% 100%); }
.footer-caption { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 9px; color: #606a79; font-size: 10.5px; font-weight: 600; }
.footer-caption svg { flex: 0 0 17px; width: 17px; height: 17px; color: #0758d8; }
.field-error { margin: 5px 0 0; color: #b3261e; font-size: 12px; }
.notice { background: #eef4ff; border: 1px solid #c5d8f5; padding: 12px; border-radius: 10px; font-size: 13px; line-height: 1.5; margin: 8px 0 0; }
.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; }
@media (max-width: 360px) { .login-card { padding-left: 16px; padding-right: 16px; } h2 { font-size: 21px; } }
@media (min-width: 768px) { .login-page { padding-top: 36px; padding-bottom: 36px; } }





/* Reset dialog uses the browser top layer for keyboard focus and backdrop. */
.reset-dialog { width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; border: 1px solid #e5ebf4; border-radius: 24px; padding: 30px; color: #172a4a; background: #fff; box-shadow: 0 24px 80px #061a4d40; }
.reset-dialog::backdrop { background: #071c426e; backdrop-filter: blur(4px); }
.reset-dialog .reset-close { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 12px; background: transparent; color: #52627b; font-size: 28px; }
.reset-icon { width: 58px; height: 58px; border-radius: 16px; background: #eaf4ff; color: #0758b5; display: grid; place-items: center; margin-bottom: 18px; }
.reset-icon svg { width: 28px; height: 28px; }
.reset-dialog h2 { text-align: left; font-size: 24px; line-height: 1.25; margin: 0 0 12px; color: #0b1f4d; }
.reset-description { font-size: 14px; line-height: 1.6; color: #596a82; margin: 0 0 24px; }
.reset-dialog label { display: block; font-size: 13px; font-weight: 600; margin: 18px 0 8px; }
.reset-dialog label span { color: #6b778b; font-weight: 400; }
.reset-dialog input, .reset-dialog textarea { width: 100%; border: 1px solid #cbd7e7; border-radius: 9px; padding: 12px 14px; font: inherit; font-size: 14px; background: #fff; color: #172a4a; }
.reset-dialog textarea { resize: vertical; min-height: 86px; }
.reset-info { display: flex; align-items: center; gap: 12px; background: #eaf4ff; border-radius: 10px; padding: 14px; font-size: 12px; line-height: 1.5; margin: 18px 0; color: #163b6e; }
.reset-info svg { flex: 0 0 24px; width: 24px; height: 24px; color: #0758b5; }
.reset-actions { display: grid; grid-template-columns: 1fr 1.2fr; gap: 12px; }
.reset-primary, .reset-secondary, .reset-whatsapp { min-height: 46px; border-radius: 9px; padding: 10px 14px; font-size: 13px; font-weight: 700; }
.reset-primary { color: white; background: #0758b5; border: 1px solid #0758b5; }
.reset-secondary { background: white; border: 1px solid #0758b5; color: #0b356c; }
.reset-preview { display: block; margin: 12px auto 0; min-height: 36px; background: none; border: none; color: #526681; text-decoration: underline; font-size: 11px; }
.reset-error { color: #a82525; background: #fff1f1; padding: 12px; border-radius: 8px; font-size: 13px; line-height: 1.5; }
.reset-success-icon { width: 72px; height: 72px; border-radius: 50%; background: #d8f4df; color: #137339; display: grid; place-items: center; font-size: 40px; margin: 12px auto 22px; }
.reset-dialog .reset-centered { text-align: center; }
.reset-reference { background: #f1f5fa; padding: 16px; border-radius: 10px; text-align: center; font-size: 12px; color: #52627b; }
.reset-reference strong { display: block; font-size: 22px; color: #0b1f4d; margin: 5px 0; }
.reset-reference small { font-size: 11px; }
.reset-whatsapp { width: 100%; background: #219b52; color: white; border: 0; }
.reset-whatsapp:disabled { opacity: .65; cursor: not-allowed; }
.reset-help { font-size: 11px; line-height: 1.5; color: #596a82; text-align: center; margin: 10px 0 20px; }
.reset-full { width: 100%; }
@media (max-width: 480px) { .reset-dialog { padding: 26px 22px; } .reset-dialog h2 { font-size: 22px; } }
.verification-camera { width: min(640px,calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto; padding: 20px; border: 0; border-radius: 20px; background: #0b1f36; color: white; }
.verification-camera::backdrop { background: #000b; }
.verification-camera header { display:flex; justify-content:space-between; align-items:center; gap:16px; }
.verification-camera h2 { font-size:20px; color:white; margin:0; text-align:left; }
.verification-camera p { font-size:13px; line-height:1.5; }
.verification-camera button { min-height:44px; border:1px solid #ffffff60; border-radius:10px; padding:8px 16px; color:white; background:#173b5e; }
.verification-camera button:disabled { opacity:.45; cursor:not-allowed; }
.verification-camera [hidden] { display:none !important; }
.camera-stage { position:relative; width:100%; max-height:60dvh; aspect-ratio:4/3; background:#000; overflow:hidden; margin:auto; }
.camera-stage video, .camera-stage img { display:block; width:100%; height:100%; object-fit:contain; }
.camera-guide { position:absolute; border:3px solid white; box-shadow:0 0 0 100vmax #0006; pointer-events:none; }
.camera-guide.ready { border-color:#36d99a; }
.camera-orientation,.camera-actions { display:flex; gap:10px; justify-content:center; margin-top:12px; }
.camera-orientation [aria-pressed=true],.camera-actions [data-use],.camera-actions [data-capture] { background:#086bbd; }
.camera-status { text-align:center; min-height:40px; }
