/* Cyberview authentication shell. Keep this file identical in both web portals. */
:root {
    --cv-auth-navy-950: #08182f;
    --cv-auth-navy-900: #102844;
    --cv-auth-navy-800: #163857;
    --cv-auth-blue-600: #147ea3;
    --cv-auth-blue-500: #1b91ba;
    --cv-auth-ink: #14253b;
    --cv-auth-text: #42536a;
    --cv-auth-muted: #6f7d90;
    --cv-auth-border: #d6dee8;
    --cv-auth-surface: #ffffff;
    --cv-auth-soft: #f5f8fb;
    --cv-auth-danger: #b42318;
    --cv-auth-danger-bg: #fff4f2;
    --cv-auth-danger-border: #f3c3bd;
    --cv-auth-success: #15603e;
    --cv-auth-success-bg: #ecf8f1;
    --cv-auth-success-border: #b8e0c9;
    --cv-auth-ring: rgba(20, 126, 163, .24);
    --cv-auth-shadow: 0 24px 70px rgba(8, 24, 47, .13);
    --cv-auth-font: "Instrument Sans", "Segoe UI", Arial, sans-serif;
}
html,
body.cv-auth-page {
    min-height: 100%;
}

body.cv-auth-page {
    margin: 0;
    background: var(--cv-auth-surface);
    color: var(--cv-auth-ink);
    font-family: var(--cv-auth-font);
    -webkit-font-smoothing: antialiased;
}

.cv-auth,
.cv-auth * {
    box-sizing: border-box;
}

.cv-auth {
    display: grid;
    grid-template-columns: minmax(360px, .92fr) minmax(480px, 1.08fr);
    min-height: 100vh;
    min-height: 100svh;
    background: var(--cv-auth-surface);
}

.cv-auth__brand {
    position: relative;
    display: flex;
    min-height: 100%;
    padding: clamp(32px, 4vw, 64px);
    overflow: hidden;
    isolation: isolate;
    background: var(--cv-auth-navy-950);
    color: #fff;
}

.cv-auth__photo,
.cv-auth__scrim {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.cv-auth__photo {
    z-index: -3;
    display: block;
    object-fit: cover;
    object-position: center;
    filter: saturate(.76) contrast(1.04);
    transform: scale(1.015);
}

.cv-auth__scrim {
    z-index: -2;
    background:
        linear-gradient(180deg, rgba(8, 24, 47, .52) 0%, rgba(8, 24, 47, .38) 42%, rgba(8, 24, 47, .92) 100%),
        linear-gradient(110deg, rgba(8, 24, 47, .72), rgba(20, 126, 163, .16));
}

.cv-auth__brand-inner {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.cv-auth__brand-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cv-auth__logo-plate {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 12px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 12px 34px rgba(8, 24, 47, .2);
}

.cv-auth__logo {
    display: block;
    width: auto;
    max-width: min(230px, 100%);
    height: 25px;
    object-fit: contain;
}

.cv-auth__portal {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin: 0;
    padding: 5px 11px;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 999px;
    background: rgba(8, 24, 47, .4);
    color: rgba(255, 255, 255, .92);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .02em;
    white-space: nowrap;
    backdrop-filter: blur(10px);
}

.cv-auth__brand-copy {
    max-width: 520px;
    padding-top: 64px;
}

.cv-auth__eyebrow {
    margin: 0 0 16px;
    color: rgba(255, 255, 255, .74);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.cv-auth__headline {
    max-width: 480px;
    margin: 0;
    color: #fff;
    font-size: clamp(36px, 4.2vw, 60px);
    font-weight: 650;
    letter-spacing: -.045em;
    line-height: .99;
    text-wrap: balance;
}

.cv-auth__brand-note {
    max-width: 460px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, .78);
    font-size: 15px;
    line-height: 1.65;
}

.cv-auth__version {
    margin: 32px 0 0;
    color: rgba(255, 255, 255, .56);
    font-size: 12px;
    line-height: 1.5;
}

.cv-auth__main {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: clamp(40px, 6vw, 72px);
    background:
        radial-gradient(circle at 100% 0%, rgba(20, 126, 163, .065), transparent 33%),
        var(--cv-auth-surface);
}

.cv-auth__panel {
    width: 100%;
    max-width: 440px;
    margin: auto;
}

.cv-auth__compact-brand {
    display: flex;
    justify-content: flex-start;
    margin: 0 0 24px;
}

.cv-auth__compact-logo {
    display: block;
    width: auto;
    max-width: 280px;
    height: 46px;
    margin: 0;
}

.cv-auth__section-label {
    margin: 0 0 12px;
    color: var(--cv-auth-blue-600);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.cv-auth__title {
    margin: 0;
    color: var(--cv-auth-ink);
    font-size: clamp(30px, 3vw, 38px);
    font-weight: 650;
    letter-spacing: -.035em;
    line-height: 1.12;
}

.cv-auth__intro {
    margin: 12px 0 0;
    color: var(--cv-auth-text);
    font-size: 15px;
    line-height: 1.65;
}

.cv-auth__form {
    margin: 32px 0 0;
}

.cv-auth__field {
    margin: 0 0 20px;
}

.cv-auth__label {
    display: block;
    margin: 0 0 8px;
    color: var(--cv-auth-ink);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.4;
}

.cv-auth__input-wrap {
    position: relative;
}

.cv-auth__input {
    display: block;
    width: 100%;
    max-width: none;
    height: 48px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid var(--cv-auth-border);
    border-radius: 10px;
    outline: 0;
    background: var(--cv-auth-surface);
    color: var(--cv-auth-ink);
    font: 400 15px/1.4 var(--cv-auth-font);
    box-shadow: 0 1px 2px rgba(8, 24, 47, .025);
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
    -webkit-appearance: none;
    appearance: none;
}

.cv-auth__input::placeholder {
    color: #99a5b5;
    opacity: 1;
}

.cv-auth__input:hover {
    border-color: #b7c3d1;
}

.cv-auth__input:focus {
    border-color: var(--cv-auth-blue-600);
    box-shadow: 0 0 0 4px var(--cv-auth-ring);
}

.cv-auth__input.input-validation-error,
.cv-auth__input[aria-invalid="true"] {
    border-color: var(--cv-auth-danger);
}

.cv-auth__input.input-validation-error:focus,
.cv-auth__input[aria-invalid="true"]:focus {
    box-shadow: 0 0 0 4px rgba(180, 35, 24, .14);
}

.cv-auth__input[readonly] {
    background: var(--cv-auth-soft);
    color: var(--cv-auth-text);
}

.cv-auth__input-wrap .cv-auth__input {
    padding-right: 50px;
}

.cv-auth__toggle {
    position: absolute;
    top: 4px;
    right: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--cv-auth-muted);
    cursor: pointer;
}

.cv-auth__toggle:hover {
    background: var(--cv-auth-soft);
    color: var(--cv-auth-ink);
}

.cv-auth__toggle:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 3px var(--cv-auth-ring);
}

.cv-auth__toggle svg {
    display: block;
    width: 19px;
    height: 19px;
}

.cv-auth__toggle .cv-auth__eye-off {
    display: none;
}

.cv-auth__toggle[aria-pressed="true"] .cv-auth__eye-on {
    display: none;
}

.cv-auth__toggle[aria-pressed="true"] .cv-auth__eye-off {
    display: block;
}

.cv-auth__error,
.cv-auth .field-validation-error {
    display: block;
    margin: 7px 0 0;
    color: var(--cv-auth-danger);
    font-size: 12.5px;
    line-height: 1.45;
}

.cv-auth .field-validation-valid,
.cv-auth .validation-summary-valid {
    display: none;
}

.cv-auth__alert {
    margin: 0 0 22px;
    padding: 12px 14px;
    border: 1px solid var(--cv-auth-danger-border);
    border-radius: 10px;
    background: var(--cv-auth-danger-bg);
    color: var(--cv-auth-danger);
    font-size: 13px;
    line-height: 1.5;
}

.cv-auth__alert ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.cv-auth__alert li + li {
    margin-top: 4px;
}

.cv-auth__status {
    display: flex;
    gap: 12px;
    margin: 26px 0 0;
    padding: 14px 16px;
    border: 1px solid var(--cv-auth-success-border);
    border-radius: 12px;
    background: var(--cv-auth-success-bg);
    color: var(--cv-auth-success);
    font-size: 13.5px;
    line-height: 1.55;
}

.cv-auth__status-icon {
    flex: 0 0 auto;
    width: 21px;
    height: 21px;
    margin-top: 1px;
}

.cv-auth__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: -4px 0 22px;
}

.cv-auth__remember {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--cv-auth-text);
    font-size: 13px;
}

.cv-auth__remember input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--cv-auth-blue-600);
}

.cv-auth__link,
.cv-auth__link:link,
.cv-auth__link:visited {
    color: var(--cv-auth-blue-600);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.cv-auth__link:hover {
    color: var(--cv-auth-navy-800);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cv-auth__link:focus-visible {
    border-radius: 4px;
    outline: 0;
    box-shadow: 0 0 0 3px var(--cv-auth-ring);
}

.cv-auth__actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 28px;
}

.cv-auth__button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 0 18px;
    border: 1px solid var(--cv-auth-navy-900);
    border-radius: 10px;
    background: var(--cv-auth-navy-900);
    color: #fff;
    font: 650 14px/1 var(--cv-auth-font);
    cursor: pointer;
    box-shadow: 0 9px 22px rgba(16, 40, 68, .17);
    transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.cv-auth__button:hover {
    border-color: var(--cv-auth-navy-800);
    background: var(--cv-auth-navy-800);
    box-shadow: 0 12px 28px rgba(16, 40, 68, .22);
    transform: translateY(-1px);
}

.cv-auth__button:active {
    transform: translateY(0);
}

.cv-auth__button:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 4px var(--cv-auth-ring), 0 9px 22px rgba(16, 40, 68, .17);
}

.cv-auth__button:disabled {
    cursor: wait;
    opacity: .82;
    transform: none;
}

.cv-auth__button-loading,
.cv-auth__spinner {
    display: none;
}

.cv-auth__button.is-loading .cv-auth__button-label {
    display: none;
}

.cv-auth__button.is-loading .cv-auth__button-loading,
.cv-auth__button.is-loading .cv-auth__spinner {
    display: inline-block;
}

.cv-auth__spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, .42);
    border-top-color: #fff;
    border-radius: 50%;
    animation: cv-auth-spin 700ms linear infinite;
}

.cv-auth__secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    color: var(--cv-auth-blue-600);
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
}

.cv-auth__secondary:hover {
    color: var(--cv-auth-navy-800);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cv-auth__hint {
    margin: 8px 0 0;
    color: var(--cv-auth-muted);
    font-size: 12.5px;
    line-height: 1.55;
}

.cv-auth__footer {
    margin: 40px 0 0;
    color: var(--cv-auth-muted);
    font-size: 12px;
    line-height: 1.5;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.cv-auth__footer-version {
    display: block;
    margin: 0;
    white-space: nowrap;
}

.cv-auth__success-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin: 0 0 24px;
    border-radius: 50%;
    background: var(--cv-auth-success-bg);
    color: var(--cv-auth-success);
}

.cv-auth__success-mark svg {
    width: 25px;
    height: 25px;
}

.cv-auth__sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@keyframes cv-auth-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 960px) {
    .cv-auth {
        grid-template-columns: 1fr;
    }

    .cv-auth__brand {
        display: none;
    }

    .cv-auth__main {
        min-height: 100vh;
        min-height: 100svh;
        align-items: flex-start;
        padding: 48px 32px;
    }

    .cv-auth__compact-brand {
        display: block;
    }

    .cv-auth__footer-version {
        display: block;
    }
}

@media (max-width: 480px) {
    .cv-auth__main {
        padding: 32px 24px;
    }

    .cv-auth__compact-brand {
        margin-bottom: 28px;
    }

    .cv-auth__title {
        font-size: 30px;
    }

    .cv-auth__form {
        margin-top: 28px;
    }

    .cv-auth__row {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 359px) {
    .cv-auth__main {
        padding-right: 18px;
        padding-left: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cv-auth__photo,
    .cv-auth__input,
    .cv-auth__button {
        transition: none;
        transform: none;
    }

    .cv-auth__spinner {
        animation: none;
    }
}
