.login-page {
    min-height: 100vh;
    background: #fff;
    color: #10264b;
}

.login-page .page-shell {
    min-height: 100vh;
    background: #fff;
}

.login-page .login-layout {
    min-height: 100vh;
    padding: 0;
}

.login-page .login-container {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    grid-template-columns: minmax(0, 52%) minmax(0, 48%);
    align-items: stretch;
    gap: 0;
}

.login-page .brand-panel {
    position: sticky;
    top: 0;
    min-width: 0;
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 40px clamp(32px, 7vw, 110px);
    background: #0753b5;
}

.portal-branding {
    position: relative;
    z-index: 1;
    width: min(100%, 570px);
    transform: translateY(-72px);
    color: #fff;
}

.portal-mark {
    display: block;
    width: clamp(190px, 25vw, 340px);
    height: auto;
    margin: 0 auto 3px;
    object-fit: contain;
}

.portal-wordmark {
    display: flex;
    align-items: baseline;
    justify-content: center;
    font-size: clamp(3.3rem, 6vw, 5.65rem);
    font-weight: 800;
    letter-spacing: -.055em;
    line-height: .98;
    white-space: nowrap;
}

.portal-wordmark span { color: #fff; }
.portal-wordmark strong { color: #ffc20e; font-weight: 850; }

.portal-rule {
    height: 7px;
    margin: 13px 0 14px;
    border-radius: 5px;
    background: linear-gradient(90deg, #ffc20e 0 34%, #fff 34% 67%, #ffc20e 67% 100%);
}

.portal-branding h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.2rem, 2.1vw, 1.72rem);
    font-weight: 750;
    line-height: 1.35;
    text-align: center;
}

.portal-branding > p {
    margin: 6px 0 0;
    color: #f0f6ff;
    font-size: clamp(1rem, 1.7vw, 1.35rem);
    text-align: center;
}

.login-page .form-panel { width: 100%; align-items: center; }

.login-page .form-panel {
    min-width: 0;
    min-height: 100vh;
    align-items: flex-start;
    justify-content: center;
    padding: 42px clamp(28px, 4vw, 68px);
    background: #fff;
}

.login-page .login-card {
    position: relative;
    min-width: 0;
    width: min(100%, 620px);
    flex: 0 1 620px;
    height: auto;
    padding: 28px 40px 32px;
    border: 1px solid rgba(222, 233, 249, .9);
    border-radius: 19px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(3, 35, 89, .1);
    backdrop-filter: none;
}

.login-page .return-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #0759ca;
    font-size: .98rem;
    font-weight: 700;
    text-decoration: none;
}

.return-link:hover { text-decoration: underline; }
.return-link svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.6; }

.card-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 8px auto 2px;
}

.card-mark {
    width: 76px;
    height: 76px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(18%) sepia(90%) saturate(2670%) hue-rotate(204deg) brightness(91%) contrast(106%);
}

.card-wordmark {
    margin-top: -4px;
    color: #0758bd;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: 1.15;
}

.card-wordmark strong { color: #ffbc08; }

.login-page .login-card .subtitle {
    margin: 7px 0 25px;
    color: #475d7d;
    font-size: 1rem;
    line-height: 1.4;
    text-align: center;
}

.login-page .form-group { margin-bottom: 17px; }

.login-page .form-group label {
    margin-bottom: 8px;
    color: #10264b;
    font-size: .94rem;
    font-weight: 750;
}

.field-control { position: relative; display: flex; align-items: center; }

.field-control > svg {
    position: absolute;
    left: 18px;
    z-index: 1;
    width: 21px;
    height: 21px;
    fill: none;
    stroke: #435a7d;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    pointer-events: none;
}

.login-page .field-control input {
    width: 100%;
    min-height: 58px;
    padding: 12px 48px 12px 57px;
    border: 1.5px solid #ccd9eb;
    border-radius: 13px;
    outline: 0;
    color: #142b50;
    background: #fff;
    font: inherit;
    font-size: .98rem;
    box-shadow: inset 0 1px 2px rgba(16, 45, 86, .03);
}

.login-page .field-control input::placeholder { color: #8395b1; opacity: 1; }
.login-page .field-control input:focus { border-color: #1764d0; box-shadow: 0 0 0 3px rgba(23, 100, 208, .12); }

.password-toggle {
    position: absolute;
    right: 13px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 6px;
    color: #435a7d;
    background: transparent;
    cursor: pointer;
}

.password-toggle:hover { background: #edf4fd; }
.password-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }

.login-page .meta-row { margin: 10px 0 17px; color: #10264b; font-size: .91rem; }
.login-page .remember { color: #10264b; font-weight: 600; }
.login-page .remember input { width: 19px; height: 19px; margin: 0; accent-color: #0758bd; }
.login-page .forgot-link { color: #075bd0; font-weight: 650; }

.login-page .btn-login {
    display: flex;
    min-height: 60px;
    align-items: center;
    justify-content: center;
    gap: 13px;
    padding: 12px 18px;
    border-radius: 13px;
    background: #0758c7;
    box-shadow: 0 8px 17px rgba(7, 73, 169, .16);
    font-size: 1.04rem;
}

.login-page .btn-login:hover { background: #064eaf; transform: translateY(-1px); }
.login-page .btn-login svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.4; }

.form-divider { display:flex; align-items:center; gap:16px; margin:18px 0; color:#496184; font-size:.9rem; }
.form-divider::before,.form-divider::after { height:1px; flex:1; background:#cbd7e7; content:""; }

.request-account {
    display:flex;
    min-height:58px;
    align-items:center;
    justify-content:center;
    gap:12px;
    border:2px solid #1263e8;
    border-radius:13px;
    color:#075bd0;
    font-size:1rem;
    font-weight:750;
    text-decoration:none;
    transition:background .16s ease;
    width:100%;
    padding:0 14px;
    background:#fff;
    font-family:inherit;
    cursor:pointer;
}

.request-account:hover { background:#f0f6ff; }
.request-account svg { width:23px; height:23px; fill:currentColor; stroke:currentColor; stroke-linecap:round; stroke-linejoin:round; stroke-width:1.5; }
.login-page [hidden] { display:none !important; }
.mode-description { margin:0 0 16px; color:#536987; font-size:.9rem; line-height:1.5; }
.mode-links { display:flex; justify-content:space-between; gap:12px; margin-top:16px; }
.form-switch { padding:0; border:0; color:#075bd0; background:transparent; font:inherit; font-size:.86rem; font-weight:700; cursor:pointer; }
.form-switch:hover { text-decoration:underline; }
.login-page .login-guide-toggle,
.login-page .login-guide-toggle:hover,
.login-page .login-guide-toggle:focus {
    appearance:none;
    -webkit-appearance:none;
    padding:2px 0;
    border:0;
    border-radius:0;
    background:transparent;
    box-shadow:none;
    color:#075bd0;
    font:inherit;
    font-size:.86rem;
    font-weight:700;
    text-align:left;
    cursor:pointer;
}
.login-page .login-guide-toggle:hover { text-decoration:underline; }
.login-page .login-guide-toggle:focus-visible { outline:none; text-decoration:underline; }
.login-page .forgot-link { padding:0; border:0; background:transparent; font:inherit; font-weight:650; }
.login-page .forgot-link:hover { text-decoration:underline; }
.login-page .error-box { margin-bottom:16px; }

@media (max-width: 900px) {
    .login-page .login-container { grid-template-columns:1fr; gap:0; }
    .login-page .brand-panel { position:relative; top:auto; min-height:280px; height:auto; padding:30px 24px; }
    .portal-branding { display:grid; grid-template-columns:90px 1fr; align-items:center; column-gap:16px; width:min(100%,530px); transform:translateY(-20px); }
    .portal-mark { grid-row:span 3; width:90px; margin:0; }
    .portal-wordmark { justify-content:flex-start; font-size:2.4rem; }
    .portal-rule { height:4px; margin:5px 0; }
    .portal-branding h1,.portal-branding > p { text-align:left; }
    .portal-branding h1 { font-size:1.05rem; }
    .portal-branding > p { margin-top:2px; font-size:.92rem; }
    .login-page .form-panel { min-height:auto; align-items:flex-start; padding:28px 20px 40px; }
}

@media (max-width: 560px) {
    .login-page .brand-panel { min-height:220px; padding:24px 16px; }
    .login-page .form-panel { padding:18px 14px 28px; }
    .portal-branding { grid-template-columns:64px 1fr; gap:0 11px; transform:translateY(-12px); }
    .portal-mark { width:64px; }
    .portal-wordmark { font-size:1.75rem; }
    .portal-branding h1 { font-size:.84rem; }
    .portal-branding > p { font-size:.8rem; }
    .login-page .login-card { height:auto; padding:20px 20px 23px; border-radius:16px; }
    .card-mark { width:62px; height:62px; }
    .card-wordmark { font-size:1.75rem; }
    .login-page .login-card .subtitle { margin-bottom:19px; }
    .login-page .field-control input { min-height:54px; font-size:.9rem; }
    .login-page .meta-row { gap:8px; font-size:.8rem; }
    .login-page .remember { gap:6px; }
    .login-page .forgot-link { white-space:nowrap; }
}

.login-embedded,.login-embedded .page-shell{min-height:100%;background:transparent!important}.login-embedded .page-shell{display:block}.login-embedded .login-layout{min-height:0;align-items:flex-start;padding:0;background:transparent}.login-embedded .login-container{display:block;width:100%;min-height:0}.login-embedded .brand-panel,.login-embedded .return-link,.login-embedded .card-brand,.login-embedded [data-form-subtitle]{display:none!important}.login-embedded .form-panel{display:block;min-height:0;padding:0;background:transparent}.login-embedded .login-card{width:100%;max-width:none;padding:10px 18px 22px;border:0;border-radius:0;background:transparent;box-shadow:none;backdrop-filter:none}.login-embedded .form-group label{margin-bottom:6px}.login-embedded .form-group{margin-bottom:12px}.login-embedded .btn-login{min-height:52px}.login-embedded .form-divider{margin:13px 0}.login-embedded footer{display:none!important}

.login-embedded .card-brand{display:flex!important;margin:0 auto 12px}.login-embedded .card-mark{width:48px;height:48px}.login-embedded .card-wordmark{margin-top:-3px;font-size:1.65rem}

.login-embedded .card-brand img.card-mark{display:block;width:78px;height:78px;visibility:visible;opacity:1}

.login-embedded .card-brand img.card-mark{width:104px;height:104px}.login-embedded .card-wordmark{font-size:2.15rem}
