/* Public entry pages share the app's palette; the existing auth and carousel scripts stay in charge. */
.access-page {
    background: #f5f7fa;
    color: #203047;
    font-family: "Open Sans", Arial, sans-serif;
}
.login-page > .auth-shell,
.login-page .auth-main { background: #f5f7fa; }
.login-page .auth-main { padding: 40px 0 64px; }
.login-page .auth-container { max-width: 1100px; padding: 0 28px; }
.auth-brand { margin-bottom: 32px; text-align: center; }
.auth-logo { display: block; width: auto; max-width: min(100%, 280px); height: auto; max-height: 84px; margin: 0 auto 24px; object-fit: contain; }
.auth-eyebrow { display: block; margin-bottom: 9px; color: #007bb8; font-size: 11px; font-weight: 700; letter-spacing: 1.6px; line-height: 1.6; text-transform: uppercase; }
.auth-brand h1 { margin: 0 0 10px; color: #203047; font-size: 40px; font-weight: 700; letter-spacing: -1.5px; line-height: 1.2; text-transform: none; }
.auth-brand h1 span { color: #007bb8; }
.auth-brand p { margin: 0; color: #68788a; font-size: 14px; line-height: 1.7; }
.auth-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.auth-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid #e2e8ee; border-radius: 16px; background: #fff; box-shadow: 0 3px 10px rgba(25, 45, 65, .02); }
.auth-card-heading { display: flex; align-items: center; gap: 14px; padding: 24px 28px; border-bottom: 1px solid #e2e8ee; }
.auth-card-icon { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 12px; background: #eaf4fa; color: #007bb8; font-size: 18px; }
.auth-card-heading h2 { margin: 0 0 3px; color: #203047; font-size: 18px; font-weight: 700; letter-spacing: -.4px; line-height: 1.5; text-transform: none; }
.auth-card-heading p { margin: 0; color: #68788a; font-size: 12px; line-height: 1.7; }
.auth-card-body { display: flex; flex: 1; flex-direction: column; padding: 28px; }
.auth-card .form-group { min-width: 0; margin: 0 0 22px; }
.auth-card label { display: block; margin: 0 0 8px; color: #203047; font-size: 12px; font-weight: 600; line-height: 1.7; }
.auth-card .form-control { height: 48px; min-width: 0; padding: 11px 14px; border: 1px solid #e2e8ee; border-radius: 10px; background: #fff; color: #203047; box-shadow: 0 2px 3px rgba(25, 45, 65, .02); font-family: inherit; font-size: 16px; line-height: 1.5; }
.auth-card .form-control:focus { border-color: #007bb8; box-shadow: 0 0 0 3px rgba(0, 123, 184, .12); }
.auth-name-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.auth-card #show_hide_password { flex-wrap: nowrap; }
.auth-card #show_hide_password input { border-radius: 10px 0 0 10px; }
.auth-card .auth-password-toggle { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid #e2e8ee; border-left: 0; border-radius: 0 10px 10px 0; background: #f5f7fa; color: #68788a; font-size: 16px; }
.auth-card .auth-forgot { display: inline-flex; align-items: center; min-height: 44px; margin-top: 3px; color: #007bb8; font-size: 12px; line-height: 1.6; }
.auth-card .auth-card-action { margin-top: auto; padding-top: 4px; }
.access-page .btn { min-height: 46px; padding: 11px 18px; border-radius: 10px; box-shadow: none; font-size: 13px; font-weight: 600; line-height: 1.7; white-space: normal; text-transform: none; }
.auth-card-action .btn { width: 100%; min-height: 48px; border: 1px solid #007bb8; background: #007bb8; color: #fff; }
.auth-card-action .btn:hover { border-color: #006b9f; background: #006b9f; color: #fff; }
.auth-card-action .btn:disabled { opacity: .6; cursor: wait; }
.auth-register-card .auth-card-heading { border-radius: 16px 16px 0 0; background: #f8fbfd; }
.auth-card .auth-terms { margin: 0 0 22px; padding-left: 28px; }
.auth-card .auth-terms label { margin: 0; font-size: 12px; font-weight: 400; line-height: 1.8; cursor: pointer; }
.auth-card .auth-terms a { color: #007bb8; text-decoration: underline; }
.auth-terms .custom-control-label::before,
.auth-terms .custom-control-label::after { top: 3px; left: -28px; width: 18px; height: 18px; }
.auth-terms small { display: block; margin-top: 4px; color: #68788a; font-size: 11px; line-height: 1.6; }
.auth-terms .custom-control-label::before { border-color: #cbd6e0; border-radius: 5px; }
.auth-terms .custom-control-input:checked ~ .custom-control-label::before { border-color: #007bb8; background-color: #007bb8; }
.auth-install { text-align: center; }
.auth-install .add-button { display: none; margin-bottom: 24px; border: 1px solid #cfe2ee; background: #edf6fb; color: #007bb8; }
.auth-install i { margin-right: 8px; }
.auth-loading { padding: 40px 24px; border: 1px solid #e2e8ee; border-radius: 16px; background: #fff; text-align: center; }
.auth-loading h2 { margin: 16px 0 0; color: #203047; font-size: 18px; font-weight: 600; line-height: 1.5; text-transform: none; }
.auth-spinner { display: inline-block; width: 30px; height: 30px; border: 3px solid #e2e8ee; border-top-color: #007bb8; border-radius: 50%; animation: auth-spin .8s linear infinite; }
@keyframes auth-spin { to { transform: rotate(360deg); } }
.auth-rules { margin-top: 24px; }
.auth-rules-content { padding: 24px 28px 28px; color: #68788a; font-size: 13px; line-height: 1.9; overflow-wrap: anywhere; }
.access-page .modal-dialog { margin: 28px auto; padding: 0 14px; }
.access-page .modal-content { overflow: hidden; border: 1px solid #e2e8ee; border-radius: 16px; background: #fff; box-shadow: 0 18px 60px rgba(25, 45, 65, .15); }
.access-page .modal-header { align-items: center; padding: 20px 24px; border-bottom: 1px solid #e2e8ee; }
.access-page .modal-title { margin: 0; color: #203047; font-size: 18px; font-weight: 700; line-height: 1.5; text-transform: none; }
.access-page .modal-header .close { padding: 12px; color: #68788a; font-size: 26px; opacity: 1; }
.access-page .modal-body { padding: 24px; color: #203047; font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.access-page .modal-footer { padding: 16px 24px; border-top: 1px solid #e2e8ee; }
.access-page .modal-footer .btn { border: 1px solid #dce8ef; background: #edf4f8; color: #007bb8; }
.access-page :is(.btn, .auth-forgot, .auth-terms a):focus-visible { outline: 3px solid #007bb8 !important; outline-offset: 3px; }

/* Full-height slides with overlaid entry and carousel controls. */
body.intro-page { min-height: 100%; height: auto !important; margin: 0; padding: 0; }
.intro-shell { --intro-bottom-inset: max(20px, env(safe-area-inset-bottom)); position: relative; display: flex; flex-direction: column; width: 100%; height: calc(var(--vh, 1vh) * 100); height: 100dvh; min-height: 260px; overflow: hidden; background: #fff; }
.intro-page .glide { flex: 1; min-height: 0; background: #eaf0f4; }
.intro-page .intro-caption { position: absolute; z-index: 2; top: 16px; left: 50%; max-width: calc(100% - 32px); margin: 0; padding: 9px 16px; border: 1px solid rgba(255, 255, 255, .65); border-radius: 24px; background: rgba(255, 255, 255, .75); color: #203047; font-size: 10px; text-align: center; white-space: nowrap; transform: translateX(-50%); pointer-events: none; }
.intro-page .glide__track,
.intro-page .glide__slides,
.intro-page .glide__slide,
.intro-page .glide__slide div { height: 100%; }
.intro-page .glide__slides { margin: 0; }
.intro-page .glide__slide div { width: 100%; background-size: cover; background-repeat: no-repeat; }
.intro-page .glide__bullets { align-items: center; bottom: calc(var(--intro-bottom-inset) + 66px); padding: 0 5px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 24px; background: rgba(20, 35, 50, .55); }
.intro-page .glide__bullet { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 36px; margin: 0; padding: 0; border: 0; border-radius: 8px; background: transparent; box-shadow: none; }
.intro-page .glide__bullet::before { display: block; width: 6px; height: 6px; border-radius: 10px; background: rgba(255, 255, 255, .65); content: ""; transition: width .2s ease; }
.intro-page .glide__bullet--active::before { width: 18px; background: #fff; }
.intro-page .glide__bullet:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.intro-actions { position: absolute; z-index: 3; right: 0; bottom: 0; left: 0; padding: 48px 22px var(--intro-bottom-inset); background: linear-gradient(180deg, rgba(10, 25, 40, 0), rgba(10, 25, 40, .5)); pointer-events: none; }
.intro-actions :is(.button_access, .button_install) { width: 100%; max-width: 520px; min-height: 50px; margin: 0 auto; padding: 12px 40px 12px 18px; position: relative; border: 1px solid #007bb8; border-radius: 11px; background: #007bb8; color: #fff; font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1.6; text-align: center; cursor: pointer; pointer-events: auto; }
.intro-actions .button_install { display: none; }
.intro-actions button span { position: absolute; top: 50%; right: 18px; font-size: 22px; transform: translateY(-50%); }
.intro-actions button:hover { border-color: #006b9f; background: #006b9f; }
.intro-actions button:focus-visible { outline: 3px solid #007bb8; outline-offset: 3px; }
@media (min-width: 992px) {
    /* Keep the original portrait proportions on desktop. */
    .intro-shell { max-width: calc(var(--vh, 1vh) * 100 * .5625); max-width: calc(100dvh * .5625); margin: 0 auto; }
}
@media (max-width: 767.98px) {
    .login-page .auth-main { padding: 28px 0 40px; }
    .login-page .auth-container { max-width: 560px; padding: 0 18px; }
    .auth-brand { margin-bottom: 26px; }
    .auth-brand h1 { font-size: 34px; }
    .auth-brand p { font-size: 13px; }
    .auth-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .auth-card-heading { padding: 20px 24px; }
    .auth-card-body,
    .auth-rules-content { padding: 24px; }
    .auth-rules { margin-top: 20px; }
}
@media (max-width: 575.98px) {
    .intro-actions { padding-right: 18px; padding-left: 18px; }
}
@media (max-width: 479.98px) {
    .login-page .auth-main { padding: 24px 0 36px; }
    .login-page .auth-container { padding: 0 14px; }
    .auth-logo { max-height: 72px; margin-bottom: 20px; }
    .auth-brand h1 { font-size: 30px; letter-spacing: -1px; }
    .auth-brand p { max-width: 260px; margin: 0 auto; }
    .auth-card { border-radius: 12px; }
    .auth-card-heading { gap: 12px; padding: 18px; }
    .auth-card-heading h2 { font-size: 17px; }
    .auth-card-body,
    .auth-rules-content { padding: 22px 18px; }
    .auth-register-card .auth-card-heading { border-radius: 12px 12px 0 0; }
    .auth-name-fields { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .auth-spinner { animation: none; }
    .intro-page .glide__bullet::before { transition: none; }
}
