:root {
    --pm-ink: #182235;
    --pm-muted: #667386;
    --pm-line: #dce5ee;
    --pm-paper: #f6f9fb;
    --pm-teal: #277c70;
    --pm-teal-dark: #17655b;
    --pm-blue: #295d96;
    --pm-gold: #a56c1d;
    --pm-rose: #8f4a61;
    --pm-shadow: 0 24px 58px rgba(24, 34, 53, .15);
}

html,
body.abp-account-layout {
    min-height: 100%;
    background: var(--pm-paper);
}

body.abp-account-layout {
    margin: 0;
    color: var(--pm-ink);
    font-family: "Segoe UI", Arial, sans-serif;
}

.pm-account-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(520px, 58vw) minmax(420px, 1fr);
    background: #f7fafc;
}

.pm-account-hero {
    position: relative;
    min-height: 100vh;
    display: grid;
    align-content: end;
    padding: clamp(44px, 6vw, 96px);
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(12, 25, 39, .93), rgba(13, 45, 59, .72) 50%, rgba(39, 124, 112, .34)),
        linear-gradient(0deg, rgba(8, 20, 33, .58), rgba(8, 20, 33, .06) 58%, rgba(8, 20, 33, .22)),
        url("/images/praxismed/login-clinical-workspace.svg") center / cover no-repeat;
}

.pm-account-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 38%;
    background: linear-gradient(0deg, rgba(8, 20, 33, .66), rgba(8, 20, 33, 0));
    pointer-events: none;
}

.pm-account-hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.pm-account-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    border-radius: 999px;
    padding: 7px 13px;
    color: #7cf3e5;
    background: rgba(255, 255, 255, .14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.pm-account-hero h1 {
    max-width: 780px;
    margin: 22px 0 16px;
    color: #fff;
    font-size: clamp(3.1rem, 5.15vw, 5.7rem);
    line-height: 1.02;
    letter-spacing: 0;
    font-weight: 850;
}

.pm-account-hero p {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, .88);
    font-size: 1.08rem;
    line-height: 1.55;
}

.pm-account-signals {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.pm-account-signals span {
    border-radius: 999px;
    padding: 8px 12px;
    color: rgba(255, 255, 255, .92);
    background: rgba(255, 255, 255, .13);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
    font-size: .83rem;
    font-weight: 800;
}

.pm-account-panel {
    position: relative;
    display: grid;
    align-content: center;
    justify-items: center;
    min-height: 100vh;
    padding: 40px;
    overflow: hidden;
    border-left: 1px solid var(--pm-line);
    background: linear-gradient(145deg, #fff 0%, #f4f8fb 100%);
}

.pm-account-orb {
    position: absolute;
    top: 34px;
    right: 42px;
    width: 270px;
    height: 270px;
    border-radius: 50%;
    background: rgba(39, 124, 112, .09);
}

.pm-account-stack {
    position: relative;
    z-index: 1;
    width: min(430px, 100%);
}

.pm-account-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.pm-account-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.pm-account-logo-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--pm-teal), var(--pm-blue));
    box-shadow: 0 12px 24px rgba(39, 124, 112, .22);
    font-size: .86rem;
    font-weight: 900;
}

.pm-account-brand .pm-account-logo-mark {
    color: #fff;
}

.pm-account-brand span {
    display: block;
    color: var(--pm-muted);
    font-size: .76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.pm-account-brand strong {
    display: block;
    color: var(--pm-ink);
    font-size: 1.22rem;
    line-height: 1.15;
}

.pm-language-switch {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--pm-line);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(24, 34, 53, .06);
}

.pm-language-switch a {
    min-width: 34px;
    border-radius: 999px;
    padding: 7px 9px;
    color: var(--pm-muted);
    text-align: center;
    text-decoration: none;
    font-size: .78rem;
    font-weight: 850;
}

.pm-language-switch a.active,
.pm-language-switch a:hover {
    color: #fff;
    background: var(--pm-teal);
}

.pm-login-card {
    border: 1px solid rgba(220, 229, 238, .94) !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, .92) !important;
    box-shadow: var(--pm-shadow) !important;
    backdrop-filter: blur(10px);
}

.pm-login-card .card-body {
    padding: 28px;
}

.pm-login-heading {
    margin-bottom: 22px;
}

.pm-login-heading span {
    display: block;
    color: var(--pm-teal-dark);
    font-size: .78rem;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.pm-login-heading h2 {
    margin: 8px 0 6px;
    color: var(--pm-ink);
    font-size: 1.8rem;
    font-weight: 850;
    letter-spacing: 0;
}

.pm-login-heading p {
    margin: 0;
    color: var(--pm-muted);
    line-height: 1.48;
}

.pm-register-note {
    display: block;
    margin-bottom: 16px;
    color: var(--pm-muted);
}

.pm-login-form {
    display: grid;
    gap: 2px;
}

.pm-tenant-name-field {
    margin-bottom: 16px !important;
}

.pm-tenant-name-field small {
    display: block;
    margin-top: 6px;
    color: var(--pm-muted);
    font-size: .78rem;
    line-height: 1.3;
}

.pm-tenant-name-field.required small {
    color: #87530d;
}

.pm-field label {
    color: var(--pm-ink);
    font-size: .86rem;
    font-weight: 850;
}

.pm-field .form-control {
    min-height: 48px;
    border: 1px solid var(--pm-line);
    border-radius: 10px;
    color: var(--pm-ink);
    box-shadow: none;
}

.pm-field .form-control:focus {
    border-color: rgba(39, 124, 112, .55);
    box-shadow: 0 0 0 .22rem rgba(39, 124, 112, .12);
}

.pm-field .input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.pm-field .input-group .btn {
    min-width: 48px;
    border-color: var(--pm-line);
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    color: var(--pm-muted);
    background: #f8fbfd;
}

.pm-login-options {
    align-items: center;
    margin-top: 2px;
}

.pm-login-options a,
.pm-external-providers a {
    color: var(--pm-teal-dark);
    font-weight: 750;
    text-decoration: none;
}

.pm-login-options a:hover,
.pm-external-providers a:hover {
    color: var(--pm-blue);
    text-decoration: underline;
}

.pm-login-submit {
    min-height: 48px;
    margin-top: 12px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: var(--pm-teal) !important;
    font-weight: 850 !important;
    box-shadow: 0 14px 28px rgba(39, 124, 112, .22);
}

.pm-login-submit:hover {
    background: var(--pm-teal-dark) !important;
}

.pm-login-cancel {
    min-height: 46px;
    border-radius: 10px !important;
    font-weight: 850 !important;
}

.pm-external-providers {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--pm-line);
}

.pm-external-providers h5 {
    color: var(--pm-ink);
    font-size: .95rem;
    font-weight: 850;
}

.alert {
    border-radius: 12px;
}

@media (max-width: 1040px) {
    .pm-account-shell {
        grid-template-columns: 1fr;
    }

    .pm-account-hero {
        min-height: 44vh;
        padding: 42px 28px;
    }

    .pm-account-panel {
        min-height: 56vh;
        border-left: 0;
        padding: 32px 22px;
    }

    .pm-account-hero h1 {
        font-size: clamp(2.35rem, 11vw, 4rem);
    }
}

@media (max-width: 560px) {
    .pm-account-topline {
        align-items: flex-start;
        flex-direction: column;
    }

    .pm-account-panel {
        padding: 22px 14px;
    }

    .pm-login-card .card-body {
        padding: 22px;
    }

    .pm-login-options .text-end {
        margin-top: 8px;
        text-align: left !important;
    }
}
