/* Authentication pages share the MONITA landing-page palette. */
.auth-page {
    --auth-navy: #062c50;
    --auth-teal: #00898c;
    --auth-yellow: #ffca32;
    --auth-ink: #17394f;
    --auth-muted: #71838f;
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 28px;
    background: #eef3f6;
    color: var(--auth-ink);
    font: 14px/1.6 "Segoe UI", Arial, sans-serif;
}
.auth-page *, .auth-page *::before, .auth-page *::after { box-sizing: border-box; }
.auth-page [hidden] { display: none !important; }
.auth-page button, .auth-page input, .auth-page select { font: inherit; }
.auth-page a { text-decoration: none; }
.auth-page a:focus-visible, .auth-page button:focus-visible {
    outline: 3px solid #d6a51c;
    outline-offset: 4px;
}
.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr);
    max-width: 1336px;
    min-height: calc(100vh - 56px);
    min-height: calc(100dvh - 56px);
    margin: 0 auto;
    border: 1px solid #e0e8ed;
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 18px 65px #13394e0c;
}
.auth-story {
    display: flex;
    flex-direction: column;
    position: relative;
    isolation: isolate;
    min-width: 0;
    padding: 42px;
    overflow: hidden;
    background: radial-gradient(ellipse at 100% 85%, #00898c50, transparent 65%), var(--auth-navy);
    color: #fff;
}
.auth-story::before, .auth-story::after {
    content: "";
    z-index: -1;
    position: absolute;
    width: 1px;
    height: 150%;
    top: -10%;
    right: 10%;
    transform: rotate(32deg);
    background: #b3d5df14;
}
.auth-story::after { right: 35%; }
.auth-brand { display: inline-flex; align-items: center; gap: 13px; color: #fff !important; width: fit-content; }
.auth-brand > img { width: 54px; height: 54px; object-fit: contain; background: #fff; border-radius: 12px; padding: 2px; }
.auth-brand strong { display: block; color: #fff; font-size: 26px; font-weight: 750; line-height: 1.1; letter-spacing: 1.5px; }
.auth-brand strong > span { color: var(--auth-yellow); }
.auth-brand small { display: block; color: #b7cfdc; font-size: 10px; margin-top: 6px; letter-spacing: .25px; }
.auth-story-content { margin: auto 0; padding: 42px 0 30px; }
.auth-eyebrow { display: flex; align-items: center; gap: 9px; color: #bad2df; font-size: 9px; font-weight: 600; letter-spacing: 1.6px; margin-bottom: 20px; }
.auth-eyebrow > span { width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; background: var(--auth-yellow); }
.auth-story h2 { max-width: 430px; color: #fff; font-size: clamp(34px, 3.25vw, 46px); font-weight: 650; letter-spacing: -1.6px; line-height: 1.17; margin: 0 0 20px; overflow-wrap: anywhere; }
.auth-story-content > p { max-width: 365px; color: #b6cbd9; font-size: 13px; line-height: 1.85; margin-bottom: 15px; }
.auth-illustration { position: relative; height: 207px; margin: 10px 0 16px; display: flex; align-items: center; justify-content: center; }
.auth-logo-tile { width: 152px; height: 152px; padding: 5px; background: #fff; border-radius: 20px; transform: rotate(-5deg); position: relative; box-shadow: 0 20px 35px #001c3330; }
.auth-logo-tile img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 17px; }
.auth-orbit { position: absolute; height: 178px; width: 310px; max-width: 100%; border: 1px solid #86b9c730; border-radius: 50%; transform: rotate(-24deg); }
.auth-orbit-two { height: 150px; width: 350px; transform: rotate(25deg); border-color: #86b9c720; }
.auth-illustration-note { position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border: 1px solid #c6e4e433; border-radius: 7px; background: #0d455b; font-size: 9px; white-space: nowrap; box-shadow: 0 6px 20px #001c331a; }
.auth-illustration-note > span { display: inline-flex; justify-content: center; align-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--auth-yellow); color: var(--auth-navy); font-size: 11px; font-weight: 800; }
.auth-capabilities { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 22px; font-size: 10px; color: #bfd5df; }
.auth-capabilities i { color: #73c4c1; margin-right: 5px; }
.auth-institution { display: flex; align-items: center; gap: 13px; border-top: 1px solid #fff2; padding-top: 23px; }
.auth-institution-logos { display: inline-flex; gap: 7px; align-items: center; flex-shrink: 0; padding: 6px 8px; background: #fff; border-radius: 8px; }
.auth-institution-logos img { object-fit: contain; height: 31px; width: auto; max-width: 30px; }
.auth-institution > span { color: #a9c2d2; font-size: 9px; line-height: 1.8; }
.auth-institution strong { display: block; color: #e4eff4; font-size: 11px; font-weight: 600; }
.auth-workspace { display: flex; flex-direction: column; min-width: 0; padding: 30px 42px 24px; }
.auth-topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 11px; }
.auth-topbar a { display: inline-flex; gap: 8px; align-items: center; color: #6e838f; min-height: 28px; }
.auth-topbar a:hover { color: var(--auth-teal); }
.auth-card { width: 100%; max-width: 416px; min-width: 0; margin: auto; padding: 46px 0; }
.auth-card-register { max-width: 440px; padding: 32px 0; }
.auth-form-heading { margin-bottom: 30px; }
.auth-kicker { display: block; color: #087f82; font-size: 9px; font-weight: 750; letter-spacing: 1.65px; margin-bottom: 10px; }
.auth-form-heading h1 { font-size: 33px; letter-spacing: -1.25px; font-weight: 700; line-height: 1.25; color: var(--auth-navy); margin: 0 0 12px; overflow-wrap: anywhere; }
.auth-form-heading h1 > span { color: var(--auth-teal); }
.auth-form-heading p { font-size: 13px; line-height: 1.8; color: var(--auth-muted); margin: 0; max-width: 355px; }
.auth-field { margin-bottom: 20px; min-width: 0; }
.auth-field label { display: inline-block; font-size: 12px; font-weight: 600; color: #2c4b60; margin-bottom: 8px; }
.auth-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.auth-label-row a { font-size: 11px; color: #008286; font-weight: 600; }
.auth-label-row a:hover { text-decoration: underline; }
.auth-input { position: relative; min-width: 0; }
.auth-input > .form-control {
    display: block;
    width: 100%;
    height: 50px;
    border: 1px solid #dce5eb;
    border-radius: 8px;
    background: #fbfcfd;
    color: var(--auth-ink);
    padding: 12px 42px;
    font-size: 13px;
    line-height: 1.5;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.auth-input > select.form-control { padding-right: 12px; cursor: pointer; }
.auth-input > .form-control::placeholder { color: #9aa9b3; font-size: 12px; }
.auth-input > .form-control:focus { border-color: var(--auth-teal); box-shadow: 0 0 0 3px #00898c13; background: #fff; outline: none; }
.auth-input-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #8198a5; font-size: 13px; pointer-events: none; }
.auth-input:focus-within > .auth-input-icon { color: var(--auth-teal); }
.auth-input > .form-control.is-invalid { border-color: #cc6262; background-image: none; }
.auth-input > .form-control.is-valid { border-color: #4c9c8d; background-image: none; }
.auth-password-toggle { position: absolute; right: 4px; top: 4px; display: flex; align-items: center; justify-content: center; border: none; padding: 0; width: 42px; height: 42px; background: transparent; border-radius: 6px; color: #81939f; cursor: pointer; }
.auth-password-toggle:hover { background: #eaf4f3; color: var(--auth-teal); }
.auth-field-error { display: block; color: #b44444; margin-top: 6px; font-size: 11px; line-height: 1.6; }
.auth-alert { display: flex; align-items: flex-start; gap: 10px; padding: 13px 15px; border-radius: 8px; background: #eef5f8; color: #3d677e; font-size: 12px; line-height: 1.7; margin-bottom: 20px; overflow-wrap: anywhere; }
.auth-alert > i { margin-top: 4px; flex-shrink: 0; }
.auth-alert-success { background: #eaf6f1; color: #236e59; border: 1px solid #cce7dc; }
.auth-alert-error { background: #fff2f1; color: #a64443; border: 1px solid #f4dcd8; }
.auth-button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 50px; padding: 12px 21px; border-radius: 8px; font-size: 13px; font-weight: 650; border: 1px solid transparent; cursor: pointer; transition: background .15s, box-shadow .15s; }
.auth-button-primary { background: var(--auth-teal); color: #fff; box-shadow: 0 5px 12px #00898c12; }
.auth-button-primary:hover { background: #007579; color: #fff; box-shadow: 0 6px 15px #00898c24; }
.auth-button-primary:active { background: #00666b; }
.auth-button:disabled { cursor: wait; opacity: .7; }
.auth-button-full { width: 100%; margin-top: 4px; }
.auth-button-primary > i { font-size: 11px; }
.auth-button-back { background: #fff; color: #577182; border-color: #dce6eb; }
.auth-button-back:hover { background: #f3f7f8; color: var(--auth-navy); }
.auth-switch { text-align: center; font-size: 12px; color: #7c8e9a; margin: 24px 0 0; }
.auth-switch > a { font-weight: 650; color: #008286; white-space: nowrap; }
.auth-switch > a:hover { text-decoration: underline; }
.auth-switch i { font-size: 9px; margin-left: 4px; transform: rotate(45deg); }
.auth-divider { display: flex; align-items: center; gap: 14px; margin: 27px 0 19px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: #e9eef1; }
.auth-divider > span { font-size: 8px; letter-spacing: 1.3px; font-weight: 600; color: #97a7b1; }
.auth-resources { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-resource { display: flex; align-items: center; gap: 11px; min-width: 0; width: 100%; padding: 14px 12px; border: 1px solid #e1e9ed; border-radius: 9px; background: #fff; text-align: left; color: var(--auth-ink); cursor: pointer; transition: border-color .15s, background .15s; }
.auth-resource:hover { background: #f7fbfa; border-color: #acd3d1; color: var(--auth-ink); }
.auth-resource-icon { display: flex; align-items: center; justify-content: center; width: 32px; height: 36px; flex-shrink: 0; border-radius: 7px; background: #edf6f5; color: #00868a; font-size: 14px; }
.auth-resource > span:nth-of-type(2) { min-width: 0; flex: 1; }
.auth-resource strong { display: block; font-size: 11px; font-weight: 650; line-height: 1.4; }
.auth-resource small { display: block; color: #8b9ca6; font-size: 9px; line-height: 1.7; margin-top: 5px; }
.auth-resource > i { font-size: 8px; color: #7995a3; }
.auth-resource > .fa-arrow-up { transform: rotate(45deg); }
.auth-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: 9px; color: #9aaab4; }
.auth-stepper { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 12px; list-style: none; margin: 0 0 26px; padding: 0 0 23px; border-bottom: 1px solid #eaf0f3; }
.auth-stepper li { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 10px; color: #91a3ae; font-weight: 600; }
.auth-step-number { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; background: #eff3f6; color: #8da0ad; font-size: 11px; font-weight: 650; }
.auth-stepper .is-active { color: var(--auth-navy); }
.auth-stepper .is-active .auth-step-number { background: var(--auth-teal); color: #fff; box-shadow: 0 0 0 4px #00898c0c; }
.auth-stepper .is-complete { color: #367f7c; }
.auth-stepper .is-complete .auth-step-number { color: #008286; background: #e6f3f0; }
.auth-step-panel { margin: 0; padding: 0; border: 0; min-width: 0; }
.auth-steps-ready .auth-step-panel { min-height: 305px; }
.auth-step-heading { margin-bottom: 22px; }
.auth-step-heading h2 { font-size: 18px; font-weight: 650; letter-spacing: -.35px; color: var(--auth-navy); margin: 0 0 5px; }
.auth-step-heading p { font-size: 11px; color: #8596a2; margin: 0; line-height: 1.7; }
.auth-required { color: #00868a; }
.auth-optional { color: #93a4ae; font-size: 10px; margin-left: 5px; font-weight: 400; }
.auth-upload { position: relative; display: flex !important; align-items: center; gap: 13px; width: 100%; min-height: 77px; padding: 14px; border: 1px dashed #cfdee4; border-radius: 9px; cursor: pointer; background: #fbfcfd; overflow: hidden; margin-bottom: 0 !important; }
.auth-upload:focus-within { outline: 3px solid #00898c30; border-color: var(--auth-teal); }
.auth-upload-icon { display: flex; align-items: center; justify-content: center; width: 39px; height: 39px; border-radius: 50%; color: #00868a; background: #eaf4f3; flex-shrink: 0; }
.auth-upload > span:nth-of-type(2) { min-width: 0; flex: 1; }
.auth-upload strong { display: block; color: #456377; font-size: 11px; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 100%; }
.auth-upload small { display: block; color: #93a4ad; font-size: 10px; margin-top: 4px; }
.auth-upload > i { color: #7d98a6; font-size: 11px; }
.auth-upload input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.auth-password-help { display: flex; align-items: flex-start; gap: 9px; background: #f1f7f7; padding: 11px 13px; margin: -5px 0 19px; border-radius: 7px; font-size: 10px; color: #708d98; line-height: 1.7; }
.auth-password-help > i { color: #00868a; margin-top: 3px; }
.auth-form-actions { display: flex; gap: 12px; margin-top: 12px; }
.auth-form-actions .auth-button-primary { flex: 1; }
.auth-step-status { min-height: 16px; margin: 10px 0 0; font-size: 9px; color: #90a1ac; text-align: right; }
.auth-approval-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; padding: 14px 0 0; border-top: 1px solid #eaf0f3; }
.auth-approval-note > i { font-size: 12px; color: #76a8ad; margin-top: 3px; }
.auth-approval-note > p { color: #8b9ca7; font-size: 10px; line-height: 1.8; margin: 0; }
.auth-card-register .auth-switch { margin-top: 18px; }
.auth-guide-modal .modal-content { border: none; border-radius: 15px; overflow: hidden; box-shadow: 0 20px 60px #062c5026; }
.auth-guide-modal .modal-header { padding: 25px 27px 20px; border-bottom-color: #e7eef2; }
.auth-guide-modal .modal-title { color: var(--auth-navy); font-size: 21px; font-weight: 650; letter-spacing: -.5px; }
.auth-guide-modal .close { color: #7f949f; font-weight: 400; opacity: 1; }
.auth-guide-modal .modal-body { padding: 23px 27px 27px; }
.auth-guide-modal .modal-body > p { font-size: 12px; color: #7a919f; margin-bottom: 20px; }
.auth-guide-modal .auth-resource + .auth-resource { margin-top: 12px; }
.auth-guide-modal .auth-resource { padding: 16px; }
.auth-guide-modal .auth-resource strong { font-size: 13px; }
.auth-guide-modal .auth-resource small { font-size: 11px; }
.auth-skip { position: fixed; top: -100px; left: 20px; background: #fff; padding: 12px 20px; color: #062c50; border: 2px solid #00898c; z-index: 10001; }
.auth-skip:focus { top: 15px; }
@media (min-width: 1500px) {
    .auth-page { padding: 38px; }
    .auth-shell { min-height: calc(100dvh - 76px); }
    .auth-story, .auth-workspace { padding-left: 55px; padding-right: 55px; }
}
@media (max-width: 1100px) {
    .auth-page { padding: 20px; }
    .auth-shell { min-height: calc(100dvh - 40px); }
    .auth-story { padding: 32px; }
    .auth-workspace { padding: 26px 30px 22px; }
    .auth-story h2 { font-size: 37px; }
    .auth-resources { grid-template-columns: 1fr; gap: 9px; }
    .auth-resources .auth-resource { padding: 11px 13px; }
    .auth-card { padding: 34px 0; }
    .auth-capabilities { gap: 13px; font-size: 9px; }
}
@media (max-width: 860px) {
    .auth-shell { grid-template-columns: 1fr; max-width: 660px; }
    .auth-story { padding: 30px 38px; }
    .auth-story-content { padding: 26px 0 0; margin: 0; }
    .auth-story h2 { max-width: 520px; font-size: 33px; margin-bottom: 0; }
    .auth-eyebrow, .auth-story-content > p, .auth-illustration, .auth-capabilities, .auth-institution { display: none; }
    .auth-workspace { padding: 23px 38px; }
    .auth-card { max-width: 460px; padding: 34px 0; }
    .auth-resources { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575px) {
    .auth-page { padding: 0; background: #fff; }
    .auth-shell { min-height: 100vh; min-height: 100dvh; border: 0; border-radius: 0; box-shadow: none; }
    .auth-story { padding: 23px 24px; }
    .auth-story-content { display: none; }
    .auth-brand { gap: 11px; }
    .auth-brand > img { width: 45px; height: 45px; border-radius: 10px; }
    .auth-brand strong { font-size: 24px; }
    .auth-brand small { font-size: 9px; margin-top: 4px; }
    .auth-workspace { padding: 17px 23px 22px; }
    .auth-topbar { font-size: 10px; gap: 12px; }
    .auth-topbar a { gap: 6px; min-height: 34px; }
    .auth-card { padding: 28px 0 34px; margin: 0 auto; }
    .auth-form-heading { margin-bottom: 26px; }
    .auth-form-heading h1 { font-size: 30px; letter-spacing: -1px; }
    .auth-form-heading p { font-size: 12px; line-height: 1.8; }
    .auth-kicker { font-size: 8px; letter-spacing: 1.4px; }
    .auth-field { margin-bottom: 20px; }
    .auth-field label { font-size: 12px; }
    .auth-input > .form-control { height: 52px; font-size: 16px; padding-left: 43px; }
    .auth-input > .form-control::placeholder { font-size: 12px; }
    .auth-password-toggle { height: 44px; width: 44px; }
    .auth-label-row a { font-size: 11px; }
    .auth-button { min-height: 51px; font-size: 13px; }
    .auth-resources { grid-template-columns: 1fr; gap: 10px; }
    .auth-resource strong { font-size: 12px; }
    .auth-resource small { font-size: 10px; margin-top: 2px; }
    .auth-resource-icon { width: 35px; }
    .auth-switch { font-size: 12px; }
    .auth-footer { font-size: 8px; flex-wrap: wrap; gap: 7px; }
    .auth-stepper { gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-bottom: 19px; margin-bottom: 23px; }
    .auth-stepper li { flex-direction: column; gap: 8px; font-size: 10px; text-align: center; }
    .auth-step-number { width: 28px; height: 28px; }
    .auth-step-heading { margin-bottom: 20px; }
    .auth-step-heading h2 { font-size: 18px; }
    .auth-step-heading p { font-size: 11px; }
    .auth-steps-ready .auth-step-panel { min-height: 310px; }
    .auth-form-actions { gap: 10px; }
    .auth-button-back { padding-inline: 15px; gap: 8px; }
    .auth-approval-note > p { font-size: 10px; }
    .auth-guide-modal .modal-dialog { margin: 14px; max-width: calc(100% - 28px); }
    .auth-guide-modal .modal-header { padding: 22px 20px 17px; }
    .auth-guide-modal .modal-title { font-size: 20px; }
    .auth-guide-modal .modal-body { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .auth-input > .form-control, .auth-button, .auth-resource { transition: none; }
}

.auth-input > textarea.form-control { height: auto; min-height: 125px; padding: 13px 15px; resize: vertical; line-height: 1.7; }
.auth-field-hint { display: block; margin-top: 8px; font-size: 10px; color: #8b9da8; line-height: 1.8; }
.auth-card-help { padding: 30px 0; }
.auth-card-help .auth-form-heading { margin-bottom: 25px; }
.auth-card-help .auth-field { margin-bottom: 17px; }
.auth-help-contact { display: flex; align-items: flex-start; gap: 10px; border-top: 1px solid #e8eef2; padding-top: 18px; margin-top: 22px; font-size: 11px; color: #8b9da8; line-height: 1.8; }
.auth-help-contact > i { color: #7aa9ad; margin-top: 4px; }
.auth-help-contact a { color: #008286; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .auth-page .fa-spin { animation: none; } }
