:root {
    --navy: #173a5e;
    --navy-dark: #102a43;
    --blue: #28699a;
    --orange: #f28c28;
    --orange-dark: #d96f0d;
    --page: #e8eef5;
    --card: #ffffff;
    --text: #1e2e3e;
    --muted: #53677a;
    --border: #b8c8d8;
    --success: #23855c;
    --danger: #a63434;
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(40, 105, 154, 0.14),
            transparent 32%
        ),
        var(--page);
    color: var(--text);
}

a {
    color: inherit;
}

.topbar {
    min-height: 78px;
    padding: 12px clamp(20px, 4vw, 58px);
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: sticky;
    top: 0;
    z-index: 20;
}

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
    text-decoration: none;
}

.brand span {
    display: flex;
    flex-direction: column;
}

.brand strong {
    color: var(--navy-dark);
    font-size: 1.03rem;
}

.brand small {
    color: var(--muted);
    margin-top: 2px;
}

.user-area {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--navy-dark);
    font-weight: 700;
}

.user-area form {
    margin: 0;
}

.page {
    width: min(1480px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0 48px;
}

.hero {
    padding: clamp(30px, 6vw, 76px);
    border-radius: 28px;
    background:
        linear-gradient(
            120deg,
            rgba(16, 42, 67, 0.98),
            rgba(40, 105, 154, 0.93)
        );
    color: white;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(250px, 0.5fr);
    gap: 34px;
    align-items: center;
    box-shadow: 0 18px 44px rgba(16, 42, 67, 0.2);
}

.hero h1,
.auth-introduction h1,
.dashboard-heading h1,
.section-heading h1 {
    margin: 9px 0 12px;
    line-height: 1.08;
}

.hero h1 {
    font-size: clamp(2.15rem, 5vw, 4.3rem);
    max-width: 880px;
}

.hero p {
    color: #eaf2f8;
    font-size: 1.09rem;
    line-height: 1.65;
    max-width: 720px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.13em;
    font-size: 0.77rem;
    font-weight: 900;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.security-panel {
    min-height: 260px;
    padding: 28px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.32);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 13px;
    text-align: center;
}

.security-panel span {
    color: #eaf2f8;
    line-height: 1.5;
}

.button {
    appearance: none;
    border: 0;
    border-radius: 10px;
    padding: 11px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
}

.button-primary {
    background: var(--orange);
    color: white;
    box-shadow: 0 8px 20px rgba(242, 140, 40, 0.25);
}

.button-primary:hover {
    background: var(--orange-dark);
}

.button-secondary {
    background: white;
    color: var(--orange-dark);
}

.button-light {
    background: white;
    color: var(--orange-dark);
    border: 1px solid var(--orange);
}

.full-width {
    width: 100%;
}

.public-features {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.public-features article,
.data-summary {
    background: white;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 24px;
}

.public-features h2 {
    margin-top: 0;
    color: var(--navy-dark);
}

.public-features p {
    color: var(--muted);
    line-height: 1.55;
}

.auth-layout {
    min-height: calc(100vh - 190px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 500px);
    gap: clamp(28px, 6vw, 90px);
    align-items: center;
}

.auth-introduction {
    min-height: 520px;
    padding: clamp(32px, 6vw, 72px);
    border-radius: 28px;
    color: white;
    background:
        linear-gradient(
            135deg,
            rgba(16, 42, 67, 0.97),
            rgba(40, 105, 154, 0.87)
        );
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    box-shadow: 0 18px 44px rgba(16, 42, 67, 0.18);
}

.auth-introduction h1 {
    font-size: clamp(2.25rem, 5vw, 4rem);
}

.auth-introduction p {
    max-width: 610px;
    color: #eaf2f8;
    line-height: 1.65;
    font-size: 1.08rem;
}

.auth-card {
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 44px rgba(16, 42, 67, 0.13);
}

.auth-card h2 {
    margin-top: 0;
    color: var(--navy-dark);
}

.auth-card label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 17px 0;
    color: var(--navy-dark);
    font-weight: 750;
}

.auth-card input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #f8fafc;
    padding: 12px 13px;
    color: var(--text);
    font: inherit;
}

.auth-card input:focus {
    outline: 3px solid rgba(40, 105, 154, 0.2);
    border-color: var(--blue);
}

.text-link {
    margin-top: 18px;
    display: block;
    color: var(--blue);
    text-align: center;
    font-weight: 750;
}

.alert {
    border-radius: 10px;
    padding: 13px 15px;
    margin: 14px 0;
    line-height: 1.45;
}

.alert-error {
    color: #7c2525;
    background: #fff0f0;
    border: 1px solid #e6b4b4;
}

.alert-success {
    color: #155f40;
    background: #edf9f4;
    border: 1px solid #addcc9;
}

.form-heading {
    margin-bottom: 22px;
    padding: clamp(22px, 4vw, 34px);
    background: white;
    border: 1px solid var(--border);
    border-radius: 20px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 26px;
    box-shadow: 0 10px 26px rgba(16, 42, 67, 0.07);
}

.form-heading h1 {
    margin: 8px 0 10px;
    color: var(--navy-dark);
    font-size: clamp(1.8rem, 4vw, 2.65rem);
    line-height: 1.12;
}

.form-heading p {
    max-width: 850px;
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.patient-form-card {
    padding: clamp(20px, 4vw, 34px);
    background: white;
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(16, 42, 67, 0.08);
}

.form-instructions {
    margin-bottom: 20px;
    padding: 15px 17px;
    border-left: 5px solid var(--orange);
    border-radius: 8px;
    background: #fff7ee;
    color: var(--navy-dark);
    font-weight: 720;
    line-height: 1.5;
}

.patient-reading-section {
    margin: 0 0 18px;
    padding: clamp(18px, 3vw, 28px);
    background: #f7fafc;
    border: 1px solid #d5e0ea;
    border-radius: 14px;
}

.patient-reading-section h2 {
    margin: 0 0 12px;
    color: var(--navy-dark);
    font-size: 1.22rem;
}

.patient-reading-section p {
    margin: 0;
    color: var(--text);
    font-size: 1rem;
    line-height: 1.7;
    white-space: pre-line;
}

.patient-form {
    display: grid;
    gap: 16px;
}

.form-question,
.signature-panel > label {
    display: grid;
    gap: 8px;
    color: var(--navy-dark);
    font-weight: 780;
}

.form-question {
    padding: 18px;
    background: #f8fafc;
    border: 1px solid #d5e0ea;
    border-radius: 13px;
}

.form-question b {
    color: var(--danger);
}

.form-question input,
.form-question select,
.form-question textarea,
.signature-panel input[type="text"] {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: white;
    color: var(--text);
    font: inherit;
}

.form-question textarea {
    min-height: 110px;
    resize: vertical;
}

.form-question input:focus,
.form-question select:focus,
.form-question textarea:focus,
.signature-panel input[type="text"]:focus {
    outline: 3px solid rgba(40, 105, 154, 0.18);
    border-color: var(--blue);
}

.form-question small {
    color: var(--muted);
    font-weight: 550;
    line-height: 1.45;
}

.signature-panel {
    margin: 8px 0;
    padding: clamp(18px, 3vw, 26px);
    background: #edf5fb;
    border: 2px solid #aac5dc;
    border-radius: 14px;
}

.signature-panel h2 {
    margin: 0 0 17px;
    color: var(--navy-dark);
}

.signature-confirmation {
    margin-top: 17px;
    grid-template-columns: 24px 1fr !important;
    align-items: start;
    color: var(--text) !important;
    font-weight: 600 !important;
    line-height: 1.5;
}

.signature-confirmation input {
    width: 20px;
    height: 20px;
    margin: 2px 0 0;
    accent-color: var(--blue);
}

.completion-card {
    display: grid;
    gap: 6px;
    margin-bottom: 20px;
    padding: 19px;
    border: 1px solid #88d1b2;
    border-radius: 13px;
    background: #edf9f4;
    color: #155f40;
}

.completion-card strong {
    font-size: 1.12rem;
}

.response-review {
    margin: 0 0 22px;
    display: grid;
    gap: 10px;
}

.response-review > div {
    display: grid;
    grid-template-columns: minmax(180px, 0.45fr) minmax(0, 1fr);
    border: 1px solid #d5e0ea;
    border-radius: 10px;
    overflow: hidden;
}

.response-review dt,
.response-review dd {
    margin: 0;
    padding: 13px 15px;
}

.response-review dt {
    background: #edf3f8;
    color: var(--navy-dark);
    font-weight: 780;
}

.response-review dd {
    background: white;
}

.dashboard-heading,
.section-heading {
    margin-bottom: 22px;
    padding: 24px 27px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.dashboard-heading h1,
.section-heading h1 {
    color: var(--navy-dark);
}

.dashboard-heading p {
    color: var(--muted);
    margin-bottom: 0;
}

.secure-badge {
    padding: 10px 15px;
    border-radius: 999px;
    background: #edf9f4;
    color: var(--success);
    border: 1px solid #addcc9;
    font-weight: 850;
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 17px;
}

.portal-card {
    min-height: 270px;
    padding: 21px;
    border-radius: 18px;
    background: white;
    border: 2px solid var(--border);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition:
        transform 140ms ease,
        border-color 140ms ease,
        box-shadow 140ms ease;
}

.portal-card:hover {
    transform: translateY(-3px);
    border-color: var(--orange);
    box-shadow: 0 14px 28px rgba(16, 42, 67, 0.12);
}

.icon-frame {
    width: 94px;
    height: 94px;
    margin-bottom: 15px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: #edf3f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portal-card strong {
    color: var(--navy-dark);
    font-size: 1.05rem;
}

.portal-card p {
    color: var(--muted);
    line-height: 1.45;
    font-size: 0.9rem;
    flex: 1;
}

.card-action {
    color: var(--orange-dark);
    font-weight: 850;
}

.data-summary {
    margin-top: 22px;
    overflow: auto;
}

.data-summary pre {
    margin: 0;
    padding: 18px;
    border-radius: 12px;
    background: #102a43;
    color: #eaf2f8;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.empty-state {
    padding: 30px;
    text-align: center;
}

.empty-state h2 {
    color: var(--navy-dark);
}

.empty-state p {
    color: var(--muted);
}

footer {
    padding: 22px clamp(20px, 4vw, 58px);
    border-top: 1px solid var(--border);
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 0.86rem;
}

@media (max-width: 1200px) {
    .portal-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 850px) {
    .hero,
    .auth-layout {
        grid-template-columns: 1fr;
    }

    .auth-introduction {
        min-height: 360px;
    }

    .public-features,
    .portal-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-heading,
    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .page {
        width: min(100% - 20px, 1480px);
        padding-top: 18px;
    }

    .topbar {
        position: static;
    }

    .brand strong {
        font-size: 0.9rem;
    }

    .user-area > span {
        display: none;
    }

    .hero,
    .auth-introduction,
    .auth-card {
        border-radius: 18px;
    }

    .public-features,
    .portal-grid {
        grid-template-columns: 1fr;
    }

    footer {
        flex-direction: column;
    }
}

/* FSH PATIENT PORTAL VISUAL IDENTITY PATCH v1 */
/* FSH PATIENT PORTAL VISUAL IDENTITY PATCH v1 */

html {
    background: #dfe7ef;
}

body {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;
    background:
        radial-gradient(
            circle at 87% 10%,
            rgba(40, 105, 154, 0.16),
            transparent 31%
        ),
        linear-gradient(
            145deg,
            #edf2f7 0%,
            #e2eaf2 48%,
            #f3f6f9 100%
        );
}

.topbar {
    min-height: 82px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid #b8c8d8;
    box-shadow: 0 4px 18px rgba(16, 42, 67, 0.07);
}

.brand img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 13px;
    box-shadow: 0 4px 12px rgba(16, 42, 67, 0.16);
}

.brand strong {
    color: #102a43;
    font-size: 1.06rem;
    font-weight: 850;
}

.brand small {
    color: #53677a;
    font-size: 0.82rem;
}

.auth-layout {
    min-height: calc(100vh - 205px);
    grid-template-columns:
        minmax(520px, 1.15fr)
        minmax(390px, 0.72fr);
    gap: clamp(38px, 6vw, 92px);
}

.login-visual-panel {
    position: relative;
    overflow: hidden;
    min-height: 590px;
    padding: clamp(42px, 6vw, 78px);
    background:
        linear-gradient(
            135deg,
            rgba(13, 44, 70, 0.98) 0%,
            rgba(26, 78, 118, 0.95) 58%,
            rgba(48, 113, 158, 0.92) 100%
        );
    border: 1px solid rgba(255, 255, 255, 0.23);
    box-shadow:
        0 24px 58px rgba(16, 42, 67, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.login-visual-panel::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    right: -190px;
    top: -185px;
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(242, 140, 40, 0.28) 0%,
            rgba(242, 140, 40, 0.08) 47%,
            transparent 70%
        );
    pointer-events: none;
}

.login-visual-panel::after {
    content: "";
    position: absolute;
    left: -90px;
    right: -90px;
    bottom: 35px;
    height: 155px;
    opacity: 0.22;
    transform: rotate(-4deg);
    background:
        repeating-radial-gradient(
            ellipse at center,
            transparent 0 26px,
            rgba(255, 255, 255, 0.30) 27px 29px
        );
    pointer-events: none;
}

.login-visual-panel > * {
    position: relative;
    z-index: 2;
}

.login-brand-lockup {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.login-company-logo {
    width: 142px;
    height: 142px;
    object-fit: contain;
    border-radius: 28px;
    box-shadow:
        0 18px 35px rgba(4, 24, 40, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.30);
}

.login-company-name {
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    font-weight: 900;
}

.auth-introduction .eyebrow {
    display: none;
}

.auth-introduction h1 {
    margin-top: 10px;
    color: #ffffff;
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: clamp(3rem, 5vw, 4.8rem);
    font-weight: 700;
    letter-spacing: -0.035em;
}

.auth-introduction p {
    max-width: 660px;
    color: #edf5fb;
    font-size: 1.12rem;
    line-height: 1.65;
}

.auth-card {
    padding: clamp(28px, 4vw, 40px);
    background: rgba(255, 255, 255, 0.99);
    border: 1px solid #c4d1dd;
    border-radius: 24px;
    box-shadow:
        0 28px 65px rgba(16, 42, 67, 0.16),
        0 2px 8px rgba(16, 42, 67, 0.05);
}

.auth-card h2 {
    color: #102a43;
    font-size: 2rem;
    font-weight: 850;
    margin-bottom: 25px;
}

.auth-card label {
    color: #1e2e3e;
    font-size: 0.96rem;
    font-weight: 800;
    margin: 19px 0;
}

.auth-card input {
    min-height: 51px;
    padding: 13px 15px;
    border: 2px solid #cfdae4;
    border-radius: 11px;
    background: #f6f9fc;
    color: #172737;
    font-size: 1rem;
    box-shadow: inset 0 1px 2px rgba(16, 42, 67, 0.04);
}

.auth-card input:hover {
    border-color: #9db4c8;
}

.auth-card input:focus {
    outline: 4px solid rgba(40, 105, 154, 0.14);
    border-color: #28699a;
    background: #ffffff;
}

.auth-card button.button-primary,
.auth-card .login-submit,
button.login-submit {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    min-height: 54px !important;
    margin-top: 25px !important;
    padding: 14px 22px !important;
    border: 2px solid #d96f0d !important;
    border-radius: 11px !important;
    background: #f28c28 !important;
    color: #ffffff !important;
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif !important;
    font-size: 1rem !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    text-shadow: none !important;
    -webkit-text-fill-color: #ffffff !important;
    box-shadow:
        0 12px 26px rgba(242, 140, 40, 0.28) !important;
    cursor: pointer !important;
}

.auth-card button.button-primary:hover,
.auth-card .login-submit:hover {
    background: #d96f0d !important;
    border-color: #c65d00 !important;
    transform: translateY(-1px);
}

.auth-card button.button-primary:active,
.auth-card .login-submit:active {
    transform: translateY(0);
}

.text-link {
    margin-top: 20px;
    color: #28699a;
    font-size: 0.94rem;
    font-weight: 800;
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}

footer {
    background: rgba(255, 255, 255, 0.72);
    color: #53677a;
}

@media (max-width: 980px) {
    .auth-layout {
        grid-template-columns: 1fr;
    }

    .login-visual-panel {
        min-height: 430px;
    }

    .form-heading {
        flex-direction: column;
    }

    .form-heading .secure-badge {
        align-self: flex-start;
    }
}

@media (max-width: 560px) {
    .login-visual-panel {
        min-height: 380px;
        padding: 32px 25px;
    }

    .login-company-logo {
        width: 105px;
        height: 105px;
        border-radius: 22px;
    }

    .auth-introduction h1 {
        font-size: 2.7rem;
    }

    .auth-card {
        padding: 25px 20px;
    }

    .page {
        width: min(100% - 20px, 1480px);
        padding-top: 18px;
    }

    .form-heading,
    .patient-form-card {
        border-radius: 15px;
    }

    .secure-badge {
        width: 100%;
        border-radius: 10px;
        text-align: center;
    }

    .response-review > div {
        grid-template-columns: 1fr;
    }
}

/* Original patient-entry portal composition, adapted for the public web app. */
.portal-entry,
.portal-login-shell {
    min-height: calc(100vh - 205px);
    border: 1px solid rgba(173, 193, 211, 0.88);
    border-radius: 30px;
    background:
        radial-gradient(
            circle at 18% 22%,
            rgba(132, 204, 255, 0.22),
            transparent 30%
        ),
        linear-gradient(145deg, #f9fbff 0%, #edf5fb 52%, #f6f1ff 100%);
    box-shadow: 0 24px 60px rgba(16, 42, 67, 0.14);
    overflow: hidden;
}

.portal-entry {
    display: grid;
    grid-template-columns: minmax(360px, 0.92fr) minmax(390px, 1.08fr);
    align-items: center;
    padding: clamp(26px, 4vw, 58px);
    gap: clamp(24px, 4vw, 68px);
}

.portal-entry-visual {
    min-height: 590px;
    display: grid;
    place-items: center;
    position: relative;
}

.portal-entry-visual::before,
.portal-login-visual::before {
    content: "";
    position: absolute;
    width: 72%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(129, 189, 237, 0.19);
    filter: blur(12px);
}

.portal-entry-art {
    position: relative;
    z-index: 1;
    display: block;
    width: min(100%, 500px);
    max-height: 650px;
    object-fit: contain;
    filter: drop-shadow(0 24px 28px rgba(23, 58, 94, 0.2));
}

.portal-entry-copy {
    max-width: 650px;
}

.portal-entry-kicker {
    color: #6f54b5;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    font-size: 0.78rem;
    font-weight: 900;
}

.portal-entry-copy h1,
.portal-login-message h1 {
    margin: 12px 0 20px;
    color: var(--navy-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3.1rem, 6vw, 5.8rem);
    font-weight: 700;
    letter-spacing: -0.055em;
    line-height: 0.98;
}

.portal-entry-copy > p {
    max-width: 600px;
    margin: 0;
    color: var(--muted);
    font-size: clamp(1rem, 1.5vw, 1.16rem);
    line-height: 1.72;
}

.portal-entry-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.portal-entry-actions .button {
    min-height: 48px;
}

.portal-entry-actions .button-primary {
    border: 1px solid #6448aa;
    background: #6f54b5;
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(111, 84, 181, 0.24);
}

.portal-entry-actions .button-primary:hover {
    background: #5e449f;
}

.portal-entry-trust {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 25px;
    color: #456276;
    font-size: 0.9rem;
    font-weight: 700;
}

.portal-entry-trust span {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    background: #e2f6ed;
    color: #16704a;
}

.portal-login-shell {
    display: grid;
    grid-template-columns: minmax(520px, 1.05fr) minmax(390px, 0.72fr);
    align-items: stretch;
}

.portal-login-visual {
    min-height: 550px;
    padding: clamp(28px, 4vw, 58px);
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(290px, 1.1fr);
    align-items: center;
    position: relative;
    overflow: hidden;
}

.portal-login-art {
    position: relative;
    z-index: 1;
    width: min(100%, 410px);
    max-height: 500px;
    justify-self: center;
    object-fit: contain;
    filter: drop-shadow(0 22px 26px rgba(23, 58, 94, 0.2));
}

.portal-login-message {
    position: relative;
    z-index: 1;
    align-self: center;
}

.portal-login-message h1 {
    font-size: clamp(2.75rem, 4vw, 4.8rem);
}

.portal-login-message p {
    color: #536f83;
    font-weight: 750;
    line-height: 1.65;
}

.portal-signin-card {
    align-self: center;
    margin: clamp(18px, 2vw, 28px);
    padding: clamp(24px, 2.4vw, 30px);
    border-color: #c9d8e6;
}

.portal-signin-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.portal-signin-heading img {
    flex: 0 0 auto;
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(16, 42, 67, 0.12);
}

.portal-signin-heading span {
    color: #6f54b5;
    font-size: 0.73rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.portal-signin-heading h2 {
    margin: 3px 0 0;
    font-size: clamp(1.3rem, 1.7vw, 1.5rem);
    line-height: 1.12;
}

.portal-signin-intro,
.portal-signin-security {
    color: var(--muted);
    line-height: 1.55;
}

.portal-signin-intro {
    margin: 0 0 14px;
}

.portal-signin-security {
    margin: 14px 0 0;
    padding-top: 13px;
    border-top: 1px solid #d9e3ec;
    font-size: 0.82rem;
}

.portal-signin-card label {
    margin: 11px 0;
}

.portal-signin-card input {
    min-height: 47px;
    padding: 10px 13px;
}

.portal-signin-card button.login-submit {
    min-height: 50px !important;
    margin-top: 16px !important;
    padding: 11px 18px !important;
}

.portal-signin-card .text-link {
    margin-top: 14px;
}

.page:has(.portal-login-shell) {
    padding-top: 18px;
    padding-bottom: 24px;
}

.field-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.field-label-row small {
    color: #72879a;
    font-size: 0.76rem;
    font-weight: 650;
}

@media (max-width: 1180px) {
    .portal-login-shell {
        grid-template-columns: minmax(430px, 0.95fr) minmax(380px, 0.75fr);
    }

    .portal-login-visual {
        grid-template-columns: 1fr;
        gap: 4px;
        text-align: center;
    }

    .portal-login-art {
        max-height: 390px;
    }

    .portal-login-message h1 {
        font-size: clamp(2.5rem, 5vw, 4rem);
    }
}

@media (max-width: 900px) {
    .portal-entry,
    .portal-login-shell {
        grid-template-columns: 1fr;
    }

    .portal-entry-visual {
        min-height: 420px;
    }

    .portal-entry-art {
        max-height: 460px;
    }

    .portal-entry-copy {
        text-align: center;
        margin: 0 auto;
    }

    .portal-entry-actions,
    .portal-entry-trust {
        justify-content: center;
    }

    .portal-login-visual {
        min-height: 560px;
    }
}

@media (max-width: 560px) {
    .portal-entry,
    .portal-login-shell {
        border-radius: 20px;
    }

    .portal-entry {
        padding: 24px 20px 32px;
    }

    .portal-entry-visual {
        min-height: 320px;
    }

    .portal-entry-art {
        max-height: 350px;
    }

    .portal-entry-copy h1,
    .portal-login-message h1 {
        font-size: 2.65rem;
    }

    .portal-entry-actions {
        flex-direction: column;
    }

    .portal-login-visual {
        min-height: 470px;
        padding: 24px 18px;
    }

    .portal-login-art {
        max-height: 310px;
    }

    .portal-signin-card {
        margin: 14px;
        padding: 24px 20px;
    }

    .portal-signin-heading img {
        width: 48px;
        height: 48px;
    }
}
