/* Login-only presentation; other account flows retain their shared layout. */
.account-login-page {
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    background:
        radial-gradient(ellipse at 8% 32%, rgba(37, 91, 218, 0.09), transparent 38rem),
        radial-gradient(ellipse at 94% 38%, rgba(0, 160, 174, 0.09), transparent 34rem),
        linear-gradient(180deg, #ffffff, #f3f7fb);
}

.account-login-page .account-language-toolbar {
    width: min(100%, 1120px);
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem;
}

.account-login-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #173b70;
    font-size: 1.65rem;
    min-width: 0;
}

.account-login-brand img {
    flex: 0 0 auto;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: contain;
}

.account-login-brand > div {
    min-width: 0;
}

.account-login-brand strong,
.account-login-brand span {
    display: block;
}

.account-login-brand strong {
    font-weight: 700;
    letter-spacing: -0.035em;
}

.account-login-brand span {
    margin-top: 0.15rem;
    color: #365474;
    font-size: 0.9rem;
    line-height: 1.4;
}

.account-login-page .account-page-main {
    min-height: 0;
    padding: 0 1.5rem;
}

.account-login-page .account-development-notice {
    padding: 0 !important;
}

.account-login-page .account-development-notice > .alert {
    animation: none;
    margin-top: 0.6rem;
    padding: 0.55rem 1rem;
    border: 1px solid #eadfcb;
    border-radius: 8px;
    background: rgba(255, 251, 242, 0.7);
    color: #795425;
    font-size: 0.78rem;
    line-height: 1.45;
}

.account-login-page .account-access-panel,
.account-login-page .account-access-panel.account-access-panel-role-choice {
    display: block;
    min-height: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.account-login-page .account-access-content {
    display: grid;
    align-content: start;
    gap: 1.25rem;
    width: min(100%, 520px);
    margin: 1.75rem auto 0;
    padding: 0;
    background: transparent;
}

.account-login-page .account-access-panel-role-choice .account-access-content {
    width: min(100%, 920px);
    margin-top: clamp(1.75rem, 4vh, 3rem);
}

.account-login-page .account-role-choice {
    width: 100%;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}

.account-login-page .account-choice-heading {
    gap: 0.65rem;
    max-width: none;
    width: 100%;
}

.account-login-page .account-choice-heading .account-welcome {
    color: #476581;
    font-size: 1.125rem;
    font-weight: 500;
}

.account-login-page .account-choice-heading h1 {
    color: #102b4f;
    font-size: clamp(1.65rem, 3vw, 2rem);
    font-weight: 650;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.account-login-instruction {
    display: grid;
    gap: 0.55rem;
    margin-top: 1rem;
}

.account-login-page .account-login-instruction p {
    color: #405875;
    font-size: 1rem;
    line-height: 1.5;
    text-wrap: balance;
}

.account-login-page .account-ospi-signature {
    display: grid;
    justify-items: center;
    margin: 0;
}

.account-ospi-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    min-height: 44px;
    max-width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #c6dbea;
    border-radius: 12px;
    background: linear-gradient(100deg, #eef4ff, #e9f8f6);
    color: #184b78;
    font-size: 1rem;
    font-weight: 650;
    cursor: pointer;
}

.account-ospi-trigger svg {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
}

.account-ospi-copy {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
    text-align: center;
}

.account-ospi-copy strong {
    color: #184b78;
    font-size: 1rem;
    font-weight: 650;
    line-height: 1.4;
}

.account-ospi-trigger:hover {
    border-color: #7eaaca;
    background: linear-gradient(100deg, #e3edff, #def2ef);
}

.account-ospi-trigger:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 4px;
}

.account-ospi-copy > span {
    color: #476581;
    font-size: 0.85rem;
    line-height: 1.4;
    text-wrap: balance;
}

.account-login-page .account-role-grid {
    gap: 1.5rem;
}

.account-login-page .account-role-option {
    --role-accent: #245bda;
    --role-border: #a8c1eb;
    --role-soft: #edf3ff;
    min-height: 310px;
    padding: 2rem;
    gap: 1.5rem;
    border: 1px solid var(--role-border);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(30, 64, 100, 0.07);
}

.account-login-page .account-role-option::before {
    display: none;
}

.account-login-page .account-role-option-professional {
    border-color: #b6d4f0;
    background:
        radial-gradient(ellipse at 100% 0, rgba(85, 155, 225, 0.2), transparent 75%),
        linear-gradient(135deg, #ffffff, #edf5ff);
    color: #174b83;
    box-shadow: 0 12px 34px rgba(30, 64, 100, 0.07);
}

.account-login-page .account-role-option-patient {
    --role-accent: #087886;
    --role-border: #86cbd2;
    --role-soft: #edf9fa;
    border-color: #b2dcd8;
    background:
        radial-gradient(ellipse at 100% 0, rgba(120, 206, 196, 0.16), transparent 75%),
        linear-gradient(135deg, #ffffff, #eff9f7);
}

.account-login-page .account-role-option:hover {
    border-color: var(--role-accent);
    box-shadow: 0 20px 40px rgba(30, 64, 100, 0.14);
    transform: translateY(-3px);
}

.account-login-page .account-access-panel-role-choice .account-role-option .account-choice-icon {
    width: 56px;
    height: 56px;
    border: 1px solid #c4d9f1;
    border-radius: 16px;
    box-shadow: none;
    background: #e4efff;
    color: #245bba;
}

.account-login-page .account-access-panel-role-choice .account-role-option-patient .account-choice-icon {
    border-color: #bee1da;
    background: #def2ed;
    color: #087568;
}

.account-login-page .account-choice-icon svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.account-login-page .account-role-option-copy {
    grid-template-rows: auto 1fr auto;
    gap: 0.65rem;
}

.account-login-page .account-role-option-copy strong {
    font-size: clamp(1.4rem, 2.1vw, 1.65rem);
    font-weight: 650;
    letter-spacing: -0.025em;
}

.account-login-page .account-role-option-copy small {
    font-size: 0.95rem;
    line-height: 1.6;
}

.account-login-page .account-role-option-professional .account-role-option-copy strong {
    color: #174b83;
}

.account-login-page .account-role-option-professional .account-role-option-copy small {
    color: #365f87;
}

.account-login-page .account-role-option-patient .account-role-option-copy strong {
    color: #125c57;
}

.account-login-page .account-role-option-action {
    margin-top: 0.85rem;
    min-height: 48px;
    padding: 0.8rem 1rem;
    border: 0;
    border-radius: 10px;
    background: var(--role-accent);
    color: #fff;
    font-weight: 650;
}

.account-login-page .account-role-option-professional .account-role-option-action {
    background: #245bba;
    color: #fff;
}

.account-login-page .account-role-option-patient .account-role-option-action {
    background: #087568;
}

.account-login-page .account-role-option:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 5px;
    transform: none;
}

.account-login-page .account-login-role-bar {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.account-login-page .account-change-role {
    min-height: 44px;
    font-weight: 600;
}

.account-login-page .account-choice-card {
    min-height: 0;
    padding: 2rem;
    border: 1px solid #d7e2f0;
    border-top: 4px solid #087886;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 16px 42px rgba(30, 64, 100, 0.07);
}

.account-login-page .account-choice-card-primary {
    border-top-color: #245bda;
}

.account-login-page .account-choice-card-header {
    align-items: center;
    margin-bottom: 0.6rem;
}

.account-login-page .account-choice-card .account-choice-icon {
    border-color: #d0def2;
    background: #edf3fd;
    color: #245bba;
}

.account-login-page .account-choice-card-patient .account-choice-icon {
    border-color: #bee1da;
    background: #e8f5f1;
    color: #087568;
}

.account-login-page .account-choice-card h1 {
    margin: 0;
    font-size: clamp(1.35rem, 3vw, 1.6rem);
    line-height: 1.25;
    letter-spacing: -0.025em;
}

.account-login-page .account-choice-copy {
    min-height: 0;
    font-size: 0.92rem;
}

.account-login-page .account-form {
    margin-top: 1.75rem;
    gap: 1.25rem;
}

.account-login-page .account-field small {
    font-size: 0.78rem;
    line-height: 1.5;
}

.account-login-page .account-field label {
    font-weight: 650;
}

.account-login-page .account-field .form-control {
    min-height: 50px;
    border-color: #cbd7e5;
    border-radius: 10px;
    background: #fcfdff;
}

.account-login-page .account-form > .text-end {
    margin-top: -0.5rem;
    font-size: 0.85rem;
}

.account-login-page .account-form > .text-end a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.account-login-page .account-submit {
    width: 100%;
    min-height: 48px;
    border-radius: 10px;
    background: #245bba;
    box-shadow: none;
    font-weight: 650;
}

.account-login-page .account-choice-card-patient .account-submit {
    background: #087568;
}

.account-login-page .account-choice-card-patient .account-submit:hover {
    background: #065b52;
}

.account-login-page .account-choice-card-patient .account-signup-panel .btn {
    border-color: #98ccc2;
    color: #08675c;
}

.account-login-page .account-submit.btn-warning {
    background: #ffca2c;
    color: #382a00;
}

.account-login-page .account-signup-panel {
    margin-top: 1.5rem;
    padding: 1.25rem 0 0;
    gap: 0.75rem;
    border: 0;
    border-top: 1px solid #e3eaf3;
    border-radius: 0;
    background: transparent;
}

.account-login-page .account-signup-panel .btn {
    min-height: 44px;
    font-weight: 650;
}

.account-login-support {
    display: grid;
    gap: 0.5rem;
    color: #52677f;
    font-size: 0.85rem;
    line-height: 1.55;
}

.account-login-help summary {
    align-content: center;
    min-height: 44px;
    color: #405875;
    cursor: pointer;
}

.account-login-help p {
    margin: 0.75rem 0;
}

.account-demo-request-link {
    justify-self: start;
    align-content: center;
    min-height: 44px;
}

.account-pin-access {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid #cce1d7;
    border-radius: 12px;
    background: #f0f9f4;
    color: #236145;
    font-size: 0.85rem;
}

.account-pin-access .btn {
    flex-shrink: 0;
    min-height: 44px;
    align-content: center;
    font-size: 0.82rem;
}

.account-login-page .account-credentials-panel-compact {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem 1rem;
    margin: 0.5rem 0 0;
    padding: 1rem 0 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.account-login-page .account-credentials-summary p {
    color: #607189;
    font-size: 0.75rem;
}

.account-login-page .account-credentials-modal-trigger {
    width: auto;
    min-height: 44px;
    padding: 0.5rem 0;
    border: 0;
    background: transparent;
    color: #405875;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: normal;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.account-login-page .account-legal-footer {
    width: min(100%, 640px);
    margin: 0 auto;
    row-gap: 0;
    padding: 0.5rem 1rem 1.5rem;
    font-size: 0.75rem;
}

.account-login-page .account-legal-footer a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.account-footer-notice {
    flex-basis: 100%;
    width: 100%;
    margin: 0;
    color: #52677f;
    font-size: 0.78rem;
    line-height: 1.6;
    text-align: center;
}

.account-footer-notice summary {
    min-height: 44px;
    align-content: center;
    cursor: pointer;
    list-style-position: inside;
}

.account-footer-notice p {
    margin: 0;
    padding: 0.75rem 1rem;
    border-top: 1px solid #d7e2f0;
    text-align: left;
}

.account-about-assessment {
    margin-bottom: 1.25rem;
    padding: 1rem;
    border-radius: 10px;
    background: #edf3f9;
    color: #344b65;
}

.account-about-assessment .account-cpcsc-eta {
    margin: 0.35rem 0 0;
    color: inherit;
    font-weight: 500;
}

.account-about-assessment .account-cpcsc-mark-icon {
    float: left;
    width: 40px;
    height: 40px;
    margin-right: 0.75rem;
    border-radius: 8px;
}

@media (max-width: 760px) {
    .account-login-page .account-language-toolbar {
        padding: 0.85rem 1rem;
        gap: 0.75rem;
    }

    .account-login-brand {
        gap: 0.65rem;
        font-size: 1.5rem;
    }

    .account-login-brand img {
        width: 52px;
        height: 52px;
    }

    .account-login-brand span {
        font-size: 0.82rem;
    }

    .account-login-page .account-page-main {
        padding-inline: 1rem;
    }

    .account-login-page .account-access-content,
    .account-login-page .account-access-panel-role-choice .account-access-content {
        margin-top: 1.5rem;
    }

    .account-login-page .account-role-choice {
        gap: 1.25rem;
    }

    .account-login-page .account-role-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .account-login-page .account-role-option {
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr);
        align-items: center;
        gap: 0.85rem 1rem;
        min-height: 0;
        padding: 1.4rem;
    }

    .account-login-page .account-role-option-copy {
        display: contents;
    }

    .account-login-page .account-role-option-copy > strong {
        grid-column: 2;
    }

    .account-login-page .account-role-option-copy > small,
    .account-login-page .account-role-option-action {
        grid-column: 1 / -1;
    }

    .account-login-page .account-role-option-copy strong {
        font-size: 1.2rem;
    }

    .account-login-page .account-role-option-copy small {
        font-size: 0.88rem;
    }

    .account-login-page .account-access-panel-role-choice .account-role-option .account-choice-icon {
        grid-row: auto;
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

    .account-login-page .account-role-option-action {
        font-size: 0.84rem;
        padding: 0.75rem;
    }

    .account-login-page .account-choice-card {
        padding: 1.4rem;
    }

    .account-login-page .account-credentials-panel-compact {
        align-items: center;
    }

    .account-pin-access {
        align-items: stretch;
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .account-login-page .account-role-option:hover {
        transform: none;
    }
}

@media (forced-colors: active) {
    .account-login-page .account-role-option::before {
        display: none;
    }
}
