:root {
    --portal-text: #252a2d;
    --portal-muted: #757b7f;
    --portal-border: #e3e5e5;
    --portal-danger: #b93636;
    --portal-success: #19734c;
}
* { box-sizing: border-box; }
body.portal-login {
    margin: 0;
    min-width: 280px;
    font-family: "Source Sans 3", Arial, sans-serif;
    color: var(--portal-text);
    background: #fafaf8;
    -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
.portal-login__page {
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: 40px 24px;
}
.portal-login__card {
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    width: 100%;
    max-width: 940px;
    background: #fff;
    border: 1px solid #ecece8;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 18px 70px #252a2d06;
}
.portal-login__intro {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 55px;
    padding: 45px;
    background: #f5f0e6;
    border-right: 1px solid #eee8dc;
}
.portal-login__brand { display: inline-block; max-width: 145px; }
.portal-login__brand img { display: block; width: 100%; max-height: 90px; object-fit: contain; }
.portal-login__eyebrow { display: block; font-size: 10px; font-weight: 700; letter-spacing: .16em; color: #7b6c51; }
.portal-login__intro-copy h2 { font-size: clamp(34px, 4vw, 44px); letter-spacing: -.04em; line-height: 1.16; font-weight: 600; margin: 18px 0; }
.portal-login__intro-copy h2::after { content: ""; display: block; width: 36px; height: 3px; margin-top: 25px; background: #ed982c; }
.portal-login__intro-copy p { margin: 22px 0 0; font-size: 15px; line-height: 1.7; color: #797266; }
.portal-login__back { display: inline-flex; align-items: center; gap: 10px; color: #716a5e; font-size: 13px; text-decoration: none; }
.portal-login__back:hover { color: #292a2b; }
.portal-login__content { min-width: 0; padding: 56px 48px 34px; }
.portal-login__header { margin-bottom: 32px; }
.portal-login__header .portal-login__eyebrow { color: #92958e; }
.portal-login__header h1 { margin: 10px 0 8px; font-size: 31px; font-weight: 600; letter-spacing: -.035em; line-height: 1.2; }
.portal-login__header p { margin: 0; color: var(--portal-muted); font-size: 15px; }
.portal-login__form { display: grid; gap: 22px; }
.portal-field { min-width: 0; }
.portal-field label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: #4e5558; }
.portal-field__label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.portal-field__control { display: flex; align-items: center; min-height: 49px; border: 1px solid var(--portal-border); border-radius: 7px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.portal-field__control:focus-within { border-color: #a77d3c; box-shadow: 0 0 0 3px #bc975719; }
.portal-field__control > i { width: 41px; flex-shrink: 0; text-align: center; color: #929895; font-size: 15px; }
.portal-field__control input { width: 100%; min-width: 0; height: 48px; padding: 0 12px 0 0; border: 0; outline: 0; border-radius: 7px; color: var(--portal-text); background: transparent; font-size: 16px; }
.portal-field__control input::placeholder { color: #a0a5a5; font-size: 14px; }
.portal-login__forgot { padding: 0; border: 0; background: none; color: #777b7b; font-size: 12px; cursor: pointer; }
.portal-login__forgot:hover { color: #252a2d; text-decoration: underline; }
.portal-button { display: inline-flex; width: 100%; min-height: 49px; align-items: center; justify-content: center; gap: 12px; padding: 11px 18px; border: 0; border-radius: 7px; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; }
body.portal-login .portal-button--primary { margin-top: 3px; color: #fff; background: #002c51; transition: background .15s; }
body.portal-login .portal-button--primary:hover { background: #001f3a; color: #fff; }
.portal-login__register { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; margin-top: 26px; color: #777e80; font-size: 13px; }
.portal-login__register a { color: #283b48; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.portal-login__footer { margin-top: 32px; padding-top: 20px; border-top: 1px solid #eff0ee; text-align: center; }
.portal-login__website { display: inline-flex; align-items: center; justify-content: center; gap: 7px; max-width: 100%; padding: 0; border: 0; color: #93999a; background: transparent; font-size: 12px; cursor: pointer; overflow-wrap: anywhere; }
.portal-login__website:hover { color: #283b48; }
.portal-alert { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 20px; padding: 12px 14px; border-radius: 7px; font-size: 14px; line-height: 1.5; }
.portal-alert--success { color: var(--portal-success); background: #edf8f2; }
.portal-alert--error { color: var(--portal-danger); background: #fff1f1; }
.portal-login a:focus-visible, .portal-login button:focus-visible { outline: 3px solid #a77d3c; outline-offset: 4px; }
@media (max-width: 800px) and (min-width: 641px) {
    .portal-login__intro { padding: 32px; }
    .portal-login__content { padding: 44px 30px 30px; }
}
@media (max-width: 640px) {
    .portal-login__page { display: block; padding: 20px 16px; }
    .portal-login__card { max-width: 440px; margin: 0 auto; grid-template-columns: 1fr; border-radius: 14px; }
    .portal-login__intro { position: relative; gap: 0; padding: 24px 28px; border-right: 0; border-bottom: 1px solid #eee8dc; }
    .portal-login__brand { max-width: 110px; }
    .portal-login__brand img { max-height: 65px; }
    .portal-login__intro-copy { display: none; }
    .portal-login__back { position: absolute; right: 25px; top: 50%; transform: translateY(-50%); font-size: 12px; }
    .portal-login__content { padding: 30px 28px 25px; }
    .portal-login__header { margin-bottom: 25px; }
    .portal-login__header h1 { font-size: 29px; }
    .portal-login__form { gap: 19px; }
    .portal-login__footer { margin-top: 25px; }
}
@media (max-width: 359px) {
    .portal-login__page { padding: 12px 9px; }
    .portal-login__intro, .portal-login__content { padding-left: 20px; padding-right: 20px; }
    .portal-login__back { max-width: 110px; right: 18px; font-size: 11px; }
    .portal-field__label-row { gap: 7px; }
    .portal-login__forgot { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .portal-login * { transition: none !important; } }
