/* Login-only layout: authentication remains in the existing LoginBean. */
body { background: #fff; overflow-x: hidden; }
body .navbar.navbar-fixed-top, .footer { display: none; }
.container { width: 100%; max-width: none; padding: 0; }
.container .row { margin: 0; }
.login-page { min-height: 100vh; color: #102347; }
.login-stage { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(410px, 1fr); min-height: 100vh; }
.login-brand { position: relative; isolation: isolate; overflow: hidden; padding: 40px 7%; display: flex; flex-direction: column; color: #fff; background: #07375b; }
.login-hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% center; z-index: -2; }
.login-brand:after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(3,37,70,.65), rgba(3,37,70,.08)), linear-gradient(0deg, rgba(3,25,45,.75), transparent 55%); }
.login-brand-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.login-brand-logo { width: 250px; max-width: 100%; height: auto; display: block; }
.login-brand-top p { margin: 3px 0 0; text-align: right; font-size: 16px; }
.login-nz { text-align: right; letter-spacing: 2px; font-size: 13px; line-height: 2; }
.login-nz small { font-size: 10px; white-space: nowrap; }
.login-brand-copy { margin-top: clamp(52px, 8vh, 100px); }
.login-brand h1 { font-size: clamp(36px, 4.1vw, 68px); line-height: 1.08; letter-spacing: -1.8px; font-weight: 700; margin: 0 0 22px; color: #fff; }
.login-brand h1 span { color: #8cdaff; }
.login-brand-copy > p { font-size: clamp(17px, 1.55vw, 24px); line-height: 1.45; max-width: 640px; }
.login-features { display: flex; flex-wrap: wrap; gap: clamp(16px, 2.8vw, 45px); margin-top: 30px; }
.login-features > div { text-align: center; font-size: 14px; line-height: 1.35; }
.login-features i { display: flex; justify-content: center; align-items: center; width: 62px; height: 62px; margin: 0 auto 10px; border: 1px solid #ffffff55; border-radius: 14px; background: #ffffff15; font-size: 27px; color: #d4f1ff; }
.login-brand-bottom { margin-top: auto; padding-top: 150px; font-size: 15px; letter-spacing: .3px; }
.login-form-wrap { display: flex; align-items: center; justify-content: center; padding: 56px 10%; min-width: 0; background: #fff; }
.login-card { width: 100%; max-width: 520px; box-sizing: border-box; }
.login-card-header { margin-bottom: 28px; }
.login-card-header h2 { margin: 0 0 8px; font-size: clamp(30px, 2.6vw, 42px); line-height: 1.15; font-weight: 700; letter-spacing: -1px; color: #0d1939; }
.login-card-header p { margin: 0; color: #637b9f; font-size: 17px; line-height: 1.5; }
.login-field { margin-bottom: 19px; }
.login-field label { display: block; margin-bottom: 8px; font-size: 13px; color: #152442; font-weight: 700; }
.login-card .ui-inputfield { width: 100% !important; box-sizing: border-box; height: 52px; padding: 12px 15px; background: #f2f7fd; border: 1px solid #d2e2f5; border-radius: 0; color: #152442; box-shadow: none; font-size: 15px; }
.login-card .ui-inputfield:focus { outline: 2px solid #048af0; outline-offset: 2px; background: #fff; }
.login-password-wrap { position: relative; }
.login-password-wrap .ui-inputfield { padding-right: 48px; }
.login-password-toggle { position: absolute; right: 3px; top: 4px; width: 44px; height: 44px; border: 0; background: transparent; color: #49668c; cursor: pointer; }
.login-actions { display: flex; justify-content: flex-end; margin: -3px 0 20px; }
.login-reset-link { color: #0079d5 !important; font-size: 14px; font-weight: 600; }
.login-submit.ui-button { width: 100%; min-height: 52px; background: #008ff3; border: 1px solid #008ff3; border-radius: 6px; color: white; box-shadow: 0 6px 18px #008ff318; font-size: 17px; font-weight: 700; }
.login-submit.ui-button:hover { background: #0076ce; border-color: #0076ce; }
.login-submit.ui-button .ui-button-text { padding: 13px 35px; }
.login-submit.ui-button .ui-button-icon-left { left: 20px; }
.login-error { margin-top: 16px; padding: 12px; color: #9c231e; background: #fff0ef; border: 1px solid #efc5c2; border-radius: 6px; }
.login-alt-action { margin-top: 20px; text-align: center; }
.login-divider { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; color: #687e9c; font-size: 12px; font-weight: 700; }
.login-divider:before, .login-divider:after { content: ''; height: 1px; background: #d7e5f5; flex: 1; }
.login-alt-link { color: #007bd6; font-weight: 700; }
.login-qr-button { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 12px; border: 1px solid #008cf0; border-radius: 6px; font-size: 15px; }
.login-qr-button:hover { background: #eff8ff; text-decoration: none; }
.login-card a:focus-visible, .login-card button:focus-visible { outline: 2px solid #007bd6; outline-offset: 3px; }
.login-qr-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    background:
        linear-gradient(#0b8fe8 0 0) 0 0 / 6px 6px,
        linear-gradient(#0b8fe8 0 0) 14px 0 / 6px 6px,
        linear-gradient(#0b8fe8 0 0) 0 14px / 6px 6px,
        linear-gradient(#0b8fe8 0 0) 10px 10px / 4px 4px,
        linear-gradient(#0b8fe8 0 0) 16px 14px / 4px 4px,
        linear-gradient(#0b8fe8 0 0) 8px 2px / 4px 4px;
    background-repeat: no-repeat;
    border: 1px solid #0b8fe8;
    box-sizing: border-box;
}

.login-card.is-hidden {
    display: none;
}

.qr-login-card {
    text-align: center;
}

.qr-login-card .login-card-header {
    margin-bottom: 24px;
}

.qr-login-image-wrap {
    width: 232px;
    height: 232px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d7e1eb;
    border-radius: 8px;
    background: #fff;
    box-shadow: inset 0 0 0 8px #f8fbff;
}

.qr-login-image {
    width: 200px;
    height: 200px;
    display: block;
}

.qr-login-message {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #eef7fc;
    color: #38566e;
    font-size: 13px;
    line-height: 1.45;
    margin: 0 0 18px;
}

.qr-refresh.ui-button {
    min-width: 178px;
}

.mobile-app-card {
    margin-top: 18px;
    padding: 12px 16px 14px;
    border: 1px solid #dbe8f4;
    border-radius: 8px;
    background: linear-gradient(135deg, #f5fbff 0%, #eaf4ff 100%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.mobile-app-copy {
    min-width: 0;
}

.mobile-app-copy h3 {
    margin: 0 0 6px;
    color: #26364a;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;
}

.mobile-app-copy p {
    margin: 0;
    color: #4b5f74;
    font-size: 11px;
    line-height: 1.35;
}

.mobile-store-links {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.mobile-store-badge {
    min-width: 0;
    width: calc(50% - 5px);
    min-height: 38px;
    padding: 5px 10px;
    border-radius: 6px;
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    text-decoration: none !important;
    box-shadow: 0 2px 5px rgba(15, 23, 42, .2);
    box-sizing: border-box;
}

.mobile-store-badge:hover,
.mobile-store-badge:focus {
    color: #fff !important;
    text-decoration: none !important;
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.mobile-store-badge.app-store {
    background: #080a0d;
}

.mobile-store-badge.play-store {
    background: #080a0d;
}

.mobile-store-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    flex: 0 0 auto;
    position: relative;
}

.mobile-store-icon::before {
    content: "";
    display: block;
    width: 13px;
    height: 13px;
}


.mobile-store-badge.play-store .mobile-store-icon::before {
    width: 17px;
    height: 18px;
    background: conic-gradient(from 45deg, #34a853 0 25%, #fbbc05 0 50%, #ea4335 0 75%, #4285f4 0);
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.mobile-store-badge.play-store .mobile-store-icon {
    background: transparent;
}

.mobile-store-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
    white-space: nowrap;
}

.mobile-store-kicker {
    font-size: 7px;
    letter-spacing: .2px;
    text-transform: uppercase;
}

.mobile-store-name {
    font-size: 12px;
    font-weight: 800;
}


.mobile-app-card { margin-top: 22px; padding: 20px; border: 0; }
.mobile-app-copy h3 { font-size: 14px; }
.mobile-app-copy p { font-size: 12px; line-height: 1.5; }
.mobile-store-links { margin-top: 16px; }
.mobile-store-badge { min-height: 45px; }
.mobile-store-name { font-size: 15px; }
.mobile-store-kicker { font-size: 8px; }
@media (max-width: 1100px) {
 .login-stage { grid-template-columns: minmax(0, 1.2fr) minmax(390px, 1fr); }
 .login-brand { padding: 32px; }
 .login-brand-logo { width: 205px; }
 .login-nz { display: none; }
 .login-form-wrap { padding: 42px 30px; }
 .login-features { gap: 18px; }
 .login-features > div { font-size: 12px; }
}
@media (max-width: 760px) {
 .login-stage { display: block; }
 .login-brand { min-height: 470px; padding: 28px 26px 50px; }
 .login-brand-top { align-items: flex-start; }
 .login-brand-logo { width: 185px; }
 .login-brand-top p { font-size: 12px; }
 .login-nz { display: block; font-size: 10px; letter-spacing: 1px; }
 .login-nz small { display: none; }
 .login-brand-copy { margin-top: 38px; }
 .login-brand h1 { font-size: clamp(32px, 7.4vw, 48px); letter-spacing: -1px; }
 .login-brand-copy > p { font-size: 16px; max-width: 300px; }
 .desktop-break { display: none; }
 .login-hero-image { object-position: 68% center; }
 .login-brand-bottom { display: none; }
 .login-features { justify-content: space-between; gap: 8px; margin-top: 28px; }
 .login-features i { width: 42px; height: 42px; font-size: 23px; border: 0; background: transparent; margin-bottom: 5px; }
 .login-features > div { font-size: 11px; }
 .login-form-wrap { position: relative; margin-top: -20px; padding: 32px 24px 40px; border-radius: 22px 22px 0 0; }
 .login-card-header h2 { font-size: 32px; }
 .login-card-header p { font-size: 16px; }
 .mobile-app-card { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) { .login-card * { transition: none !important; } }

/* App download QR stays separate from the secure login challenge. */
.mobile-app-card { display: grid; grid-template-columns: minmax(0, 1fr) 112px; align-items: center; gap: 14px; }
.mobile-download-qr { display: flex; flex-direction: column; gap: 5px; align-items: center; color: #38566e; text-decoration: none; font-size: 10px; text-align: center; }
.mobile-download-qr img { display: block; width: 112px; height: 112px; max-width: none; border: 6px solid white; box-sizing: border-box; border-radius: 4px; background: white; }
.mobile-app-card .mobile-store-links { flex-wrap: wrap; }
.mobile-app-card .mobile-store-badge { flex: 1 0 112px; width: auto; }
@media (max-width: 420px) {
 .mobile-app-card { padding: 12px; gap: 10px; grid-template-columns: minmax(0, 1fr) 100px; }
 .mobile-download-qr img { width: 100px; height: 100px; }
}

/* Keep login inputs and primary login actions square. */
.login-card .ui-inputfield { border-radius: 0 !important; }
.login-card .login-submit.ui-button { border-radius: 0 !important; }
.login-card .login-qr-button,
.login-card .login-qr-button:hover,
.login-card .login-qr-button:focus { border-radius: 0; text-decoration: none !important; }
.mobile-apple-icon { display: block; width: 24px; height: 28px; flex: 0 0 24px; }
.mobile-app-copy p { font-size: 13px; line-height: 1.5; }
.mobile-store-kicker { font-size: 9px; letter-spacing: 0; }
.mobile-store-name { font-size: 16px; font-weight: 600; }
.mobile-download-qr { font-size: 12px; line-height: 1.4; }
.mobile-store-badge { min-height: 48px; }

.login-signup { margin: 24px 0 0; text-align: center; color: #637b9f; font-size: 14px; line-height: 1.5; }
.login-signup a { display: inline-block; padding: 8px 4px; color: #0079d5; font-weight: 700; text-decoration: none; }
.login-signup a:hover { text-decoration: underline; }
