:root {
    color-scheme: light;
    --page: #ffffff;
    --ink: #4c4c4c;
    --muted: #565656;
    --dark: #2e2e2e;
    --blue: #00508f;
    --teal: #00b9bd;
    --border: #c6c6c6;
    --rule: #9f9f9f;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", SegoeUI, -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--ink);
    background: var(--page);
    padding: 24px 20px 56px;
}

body.sign-in-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100dvh;
    padding: clamp(20px, 5vh, 48px) 20px;
}

.portal-shell {
    width: min(1214px, 100%);
    margin: 0 auto;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 315px;
    gap: 34px;
    min-height: 505px;
    padding: 30px 29px 29px 58px;
    background: url("/static/clinical-hero-bg.jpg") center / cover no-repeat;
}

.hero-main {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
    padding-top: 18px;
}

.brand-logo {
    display: block;
    width: 292px;
    max-width: 72%;
    height: auto;
    margin: 0 0 38px;
}

.hero h1 {
    width: min(520px, 100%);
    margin: 0 0 31px;
    color: #505050;
    font-size: 64px;
    font-weight: 200;
    letter-spacing: 0;
    line-height: 1.03;
}

.hero-text {
    width: min(650px, 100%);
    margin: 0;
    color: #3e3e3e;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.45;
}

.brand-strip {
    display: flex;
    align-items: baseline;
    gap: clamp(32px, 4.5vw, 48px);
    margin-top: 43px;
}

.brand-wordmark {
    display: inline-block;
    white-space: nowrap;
    line-height: 1;
}

.brand-simka {
    color: #050505;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.brand-dermaviduals {
    color: var(--blue);
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.brand-dermaviduals sup {
    top: -0.3em;
    position: relative;
    font-size: 0.34em;
}

.brand-exceed {
    color: var(--teal);
    font-size: 24px;
    font-weight: 200;
    letter-spacing: -0.04em;
}

.hero-user,
.support-panel,
.app-card {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.66);
}

.hero-user {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 446px;
    margin: 0;
    padding: 30px 25px 28px;
}

.user-panel-label,
.app-eyebrow,
.panel-kicker,
.support-label {
    display: block;
    color: #4b4b4b;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-transform: uppercase;
}

.user-panel-label {
    margin-bottom: 60px;
}

.user-name {
    display: block;
    margin-bottom: 50px;
    color: #4c4c4c;
    font-size: 18px;
    font-weight: 700;
}

.user-email,
.user-note {
    margin: 0;
    color: #505050;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.45;
}

.user-divider {
    width: 100%;
    height: 1px;
    margin: 22px 0 61px;
    background: var(--rule);
}

.hero-user:not(.sign-in-panel) {
    align-self: start;
    justify-content: flex-start;
    min-height: 0;
    gap: 22px;
}

.hero-user:not(.sign-in-panel) .user-panel-label {
    margin-bottom: 24px;
}

.hero-user:not(.sign-in-panel) .user-name {
    margin-bottom: 24px;
}

.hero-user:not(.sign-in-panel) .user-divider {
    margin: 0;
}

.hero-user:not(.sign-in-panel) .logout-link {
    margin-top: 24px;
}

.logout-link,
.support-link,
.app-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--blue);
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

.logout-link {
    margin-top: 46px;
}

.logout-link::after,
.support-link::after,
.app-link::after {
    content: "›";
    font-size: 26px;
    font-weight: 600;
    line-height: 0.72;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 620px) minmax(300px, 343px);
    gap: 23px;
    align-items: start;
    justify-content: space-between;
    margin-top: 26px;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 23px;
}

.app-card {
    display: flex;
    min-height: 336px;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    flex-direction: column;
}

.app-card-sharepoint {
    grid-column: 1;
}

.app-image {
    display: block;
    width: 100%;
    height: 132px;
    object-fit: cover;
    filter: saturate(0.7);
}

.app-card-bigcommerce .app-image {
    object-position: 40% 8%;
}

.app-card-wordpress .app-image {
    object-position: center;
}

.app-card-sharepoint .app-image {
    object-position: left top;
}

.app-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 21px 18px 24px;
}

.app-label {
    display: block;
    margin-top: 17px;
    color: #555555;
    font-size: 22px;
    font-weight: 300;
    line-height: 1.15;
}

.app-description {
    margin: 16px 0 0;
    color: #4e4e4e;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.35;
}

.app-link {
    margin-top: auto;
    padding-top: 26px;
}

.support-panel {
    min-height: 514px;
    padding: 31px 21px 27px;
}

.panel-header h2 {
    margin: 14px 0 13px;
    color: #505050;
    font-size: 24px;
    font-weight: 300;
    line-height: 1.1;
}

.panel-header p,
.support-item p {
    margin: 0;
    color: #505050;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.42;
}

.section-rule {
    width: 100%;
    height: 1px;
    margin: 24px 0 23px;
    background: var(--blue);
}

.support-list {
    display: grid;
    gap: 0;
}

.support-item {
    padding: 0 0 18px;
    border-bottom: 1px solid #7fa6c8;
}

.support-item + .support-item {
    padding-top: 22px;
}

.support-email {
    color: var(--blue);
    font-weight: 600;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.support-email:hover {
    text-decoration: underline;
}

.support-label {
    margin-bottom: 12px;
    font-size: 14px;
}

.support-actions {
    margin-top: 28px;
}

.sign-in-shell,
.error-shell {
    width: min(1060px, 100%);
    margin: auto;
}

.sign-in-hero,
.error-hero {
    min-height: 520px;
}

.sign-in-hero {
    align-items: center;
}

.sign-in-hero .brand-logo {
    margin-bottom: 28px;
}

.sign-in-hero h1 {
    margin-bottom: 0;
}

.hero-user.sign-in-panel {
    align-self: center;
    justify-content: flex-start;
    gap: 22px;
    justify-self: end;
    width: 100%;
    max-width: 360px;
    min-width: 0;
    min-height: 0;
    padding: 34px 24px 32px;
    border-color: rgba(166, 166, 166, 0.72);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 48px rgba(46, 46, 46, 0.13);
    backdrop-filter: blur(4px);
}

.sign-in-panel .user-panel-label,
.sign-in-panel .user-divider {
    margin: 0;
}

.sign-in-panel .user-note {
    max-width: 250px;
}

.sign-in-panel .user-divider {
    background: rgba(0, 80, 143, 0.42);
}

.sign-in-panel .primary-action {
    width: 100%;
}

.support-note {
    margin: -4px 0 0;
    color: #5f5f5f;
    font-size: 13px;
    font-weight: 300;
    line-height: 1.4;
}

.support-note a {
    color: var(--blue);
    font-weight: 600;
    text-decoration: none;
}

.support-note a:hover {
    text-decoration: underline;
}

.error-panel {
    justify-content: center;
}

.primary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 12px 18px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.62);
    color: var(--blue);
    font-weight: 700;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.primary-action:hover {
    border-color: rgba(0, 80, 143, 0.55);
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(0, 80, 143, 0.16);
    transform: translateY(-1px);
}

.primary-action:focus-visible {
    outline: 3px solid rgba(0, 80, 143, 0.24);
    outline-offset: 3px;
}

.primary-action:active {
    box-shadow: 0 4px 12px rgba(0, 80, 143, 0.12);
    transform: translateY(0);
}

.microsoft-mark {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    flex: 0 0 auto;
    gap: 2px;
    width: 18px;
    height: 18px;
}

.microsoft-mark span:nth-child(1) {
    background: #f25022;
}

.microsoft-mark span:nth-child(2) {
    background: #7fba00;
}

.microsoft-mark span:nth-child(3) {
    background: #00a4ef;
}

.microsoft-mark span:nth-child(4) {
    background: #ffb900;
}

.error-note {
    margin: 0;
    color: #505050;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.42;
}

.error-link {
    color: var(--blue);
}

@media (max-width: 980px) {
    body {
        padding: 16px;
    }

    .hero,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 0;
        gap: 24px;
        padding: 28px;
    }

    .hero-user {
        min-height: 360px;
    }

    .hero-user.sign-in-panel {
        justify-self: start;
    }

    .user-panel-label,
    .user-name,
    .user-divider,
    .logout-link {
        margin-bottom: 28px;
    }

    .user-divider {
        margin-top: 28px;
    }
}

@media (max-width: 720px) {
    .hero h1 {
        font-size: 48px;
    }

    .brand-strip,
    .apps-grid {
        grid-template-columns: 1fr;
    }

    .brand-strip {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .app-card-sharepoint {
        grid-column: auto;
    }

    .brand-logo {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    body.sign-in-page {
        padding: 20px 0;
    }

    .sign-in-shell {
        width: 100%;
    }

    .sign-in-hero {
        padding: 28px;
    }

    .hero h1 {
        font-size: 42px;
    }
}
