/* Standalone login experience: matches the compact blue portal shell. */
:root {
    --auth-navy: #173e82;
    --auth-blue: #2556a6;
    --auth-ink: #172b52;
    --auth-muted: #6f7e99;
    --auth-border: #dce4f1;
}

html,
body.portal-auth {
    height: 100%;
    overflow: hidden;
}

body.portal-auth {
    min-height: 100vh;
    margin: 0;
    color: var(--auth-ink);
    background: #eff4ff;
    font-family: "primary-font", sans-serif;
}

.portal-auth__background,
.portal-auth__orb,
.portal-auth__grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.portal-auth__background {
    overflow: hidden;
    background: linear-gradient(135deg, #12356f 0%, #1d4c96 55%, #2b62b2 100%);
}

.portal-auth__grid {
    opacity: .18;
    background-image: linear-gradient(rgba(255,255,255,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.14) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(135deg, #000, transparent 75%);
}

.portal-auth__orb {
    border-radius: 999px;
    filter: blur(1px);
}

.portal-auth__orb--one {
    width: 470px;
    height: 470px;
    inset: auto auto -190px -135px;
    background: rgba(76, 195, 225, .24);
}

.portal-auth__orb--two {
    width: 310px;
    height: 310px;
    inset: -100px -65px auto auto;
    background: rgba(139, 209, 255, .18);
}

.portal-auth__shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
    gap: clamp(34px, 7vw, 128px);
    align-items: center;
    width: min(1120px, calc(100% - 48px));
    min-height: 100vh;
    margin: 0 auto;
    padding: 42px 0;
}

.portal-auth__welcome { color: #fff; }

.portal-auth__brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.portal-auth__logo {
    display: grid;
    width: 65px;
    height: 65px;
    place-items: center;
    overflow: hidden;
    color: var(--auth-navy);
    background: #fff;
    border: 3px solid rgba(255,255,255,.48);
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(4, 20, 54, .22);
}

.portal-auth__logo img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.portal-auth__svg-icon { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.portal-auth__eyebrow { display: block; margin-bottom: 3px; color: #b8d5ff; font-size: 13px; font-weight: 700; }
.portal-auth__brand h1 { margin: 0; color: #fff; font-size: clamp(22px, 2.3vw, 31px); font-weight: 700; line-height: 1.3; }

.portal-auth__welcome-copy { max-width: 480px; margin-top: clamp(95px, 17vh, 190px); }
.portal-auth__welcome-copy h2 { margin: 0; color: #fff; font-size: clamp(25px, 2.8vw, 37px); font-weight: 700; line-height: 1.45; }

.portal-auth__panel {
    padding: clamp(28px, 4vw, 42px);
    background: rgba(255,255,255,.98);
    border: 1px solid rgba(255,255,255,.64);
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(5, 25, 70, .26);
}

.portal-auth__panel-header { display: flex; align-items: center; gap: 13px; margin-bottom: 29px; }
.portal-auth__panel-icon { display: grid; flex: 0 0 auto; width: 42px; height: 42px; place-items: center; color: var(--auth-blue); background: #eaf1ff; border-radius: 13px; font-size: 17px; }
.portal-auth__panel-header p { margin: 0 0 2px; color: var(--auth-muted); font-size: 13px; }
.portal-auth__panel-header h2 { margin: 0; color: var(--auth-ink); font-size: 21px; font-weight: 700; }
.portal-auth__form { display: grid; gap: 19px; }
.portal-auth__field { margin: 0; }
.portal-auth__field label { display: block; margin: 0 0 8px; color: #354a71; font-size: 13px; font-weight: 700; }
.portal-auth__label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.portal-auth__label-row > span { color: #8290a7; font-size: 11px; }
.portal-auth__label-row a { color: var(--auth-blue); font-size: 11px; font-weight: 700; text-decoration: none; }
.portal-auth__label-row a:hover { color: var(--auth-navy); text-decoration: underline; }
.portal-auth__control { position: relative; }
.portal-auth__control-icon { position: absolute; z-index: 2; top: 50%; right: 14px; width: 17px; height: 17px; color: #7890ba; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; transform: translateY(-50%); }
.portal-auth__control .form-control {
    height: 46px;
    padding: 9px 42px 9px 13px;
    color: var(--auth-ink);
    background: #fff;
    border: 1px solid var(--auth-border);
    border-radius: 11px;
    box-shadow: none;
    font-family: inherit;
    font-size: 14px;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.portal-auth__control .form-control::placeholder { color: #a1aec2; }
.portal-auth__control .form-control:focus { border-color: #3f6fc0; box-shadow: 0 0 0 3px rgba(47, 100, 187, .13); }
.portal-auth__control .form-control.is-invalid { background-image: none; }
.portal-auth__field .invalid-feedback { margin-top: 6px; color: #d73c58; font-size: 11px; }
.portal-auth__captcha-field { padding-top: 1px; }
.portal-auth__captcha-image { display: flex; align-items: center; min-height: 42px; margin: 5px 0 10px; }
.portal-auth__captcha-image img { max-width: 172px; height: 40px; padding: 4px 9px; cursor: pointer; background: #f5f8ff; border: 1px dashed #bbcae3; border-radius: 9px; }
.portal-auth__submit { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; margin-top: 3px; color: #fff; background: linear-gradient(135deg, #1c478e, #2f65bb); border: 0; border-radius: 11px; box-shadow: 0 10px 20px rgba(30, 75, 154, .24); font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.portal-auth__submit:hover { color: #fff; box-shadow: 0 13px 25px rgba(30, 75, 154, .32); transform: translateY(-1px); }
.portal-auth__submit-icon { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.portal-auth__submit:focus { outline: 3px solid rgba(76, 125, 208, .35); outline-offset: 2px; }
.portal-auth__footer { margin: 23px 0 0; color: #8592a8; font-size: 11px; line-height: 1.75; text-align: center; }
.portal-auth .alert { margin-bottom: 0; border-radius: 10px; font-size: 12px; }
.portal-auth .page-loader { display: none !important; }

@media (max-width: 900px) {
    .portal-auth__shell { grid-template-columns: minmax(0, 460px); justify-content: center; width: min(100% - 34px, 460px); padding: 28px 0; }
    .portal-auth__welcome { display: none; }
}

@media (max-width: 480px) {
    .portal-auth__shell { width: min(100% - 24px, 460px); padding: 12px 0; }
    .portal-auth__panel { padding: 25px 20px; border-radius: 19px; }
    .portal-auth__panel-header { margin-bottom: 24px; }
    .portal-auth__label-row { align-items: flex-start; flex-direction: column; gap: 2px; }
    .portal-auth__label-row a { align-self: flex-end; margin-top: -23px; }
    .portal-auth__captcha-image img { max-width: 100%; }
}
