/* Authentication layout and responsive behavior. Colors are owned by branding.css. */
.password-card {
    width: min(480px, 100%);
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: clamp(18px, 4vw, 34px);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
}

.password-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: grid;
    place-items: center;
}

.password-card > span {
    font-size: 10px;
    font-weight: 700;
    margin-top: 8px;
}

.password-card h1 {
    margin: 0;
    font-size: 22px;
}

.password-card > p {
    font-size: 13px;
    margin: 0 0 12px;
}

.password-card label {
    font-size: 13px;
    font-weight: 600;
}

.password-card .field {
    margin-top: 5px;
    margin-bottom: 3px;
}

.password-card > small {
    font-size: 12px;
}

.password-card > .primary-button {
    height: 45px;
    margin-top: 7px;
}

.auth-page {
    min-height: 100dvh;
    display: grid;
    grid-template-columns: minmax(440px, 42%) minmax(0, 58%);
    direction: ltr;
    overflow: hidden;
}

.auth-page[dir='rtl'] .auth-form-side {
    grid-column: 2;
    grid-row: 1;
    direction: rtl;
}

.auth-page[dir='rtl'] .auth-visual {
    grid-column: 1;
    grid-row: 1;
    direction: rtl;
}

.auth-page[dir='ltr'] .auth-form-side {
    grid-column: 1;
    grid-row: 1;
    direction: ltr;
}

.auth-page[dir='ltr'] .auth-visual {
    grid-column: 2;
    grid-row: 1;
    direction: ltr;
}

.auth-visual {
    position: relative;
    min-height: 100dvh;
    padding: clamp(40px, 5vw, 76px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.auth-visual__brand {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 15px;
}

.auth-visual__copy {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.auth-visual > small {
    position: relative;
    z-index: 2;
    font-size: 9px;
}

.auth-security-note {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 11px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 13px;
}

.auth-visual__brand img {
    width: 86px;
    height: 62px;
    object-fit: contain;
    border-radius: 13px;
    padding: 7px;
}

.auth-visual__brand div {
    display: grid;
    gap: 4px;
}

.auth-visual__brand strong {
    font-size: 15px;
}

.auth-visual__brand span {
    font-size: 9px;
}

.auth-eyebrow {
    display: block;
    font-size: 10px;
    font-weight: 800;
    margin-bottom: 10px;
}

.auth-visual__copy h2 {
    max-width: 760px;
    font-size: clamp(24px, 4.4vw, 38px);
    line-height: 1.45;
    margin: 0 0 18px;
    letter-spacing: -0.035em;
}

.auth-visual__copy p {
    max-width: 590px;
    font-size: 12px;
    line-height: 2;
}

.auth-form-side {
    position: relative;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 74px clamp(30px, 7vw, 110px) 40px;
    overflow-y: auto;
}

.auth-language {
    position: absolute;
    inset-block-start: 28px;
    inset-inline-end: 32px;
    /* 44px, the same target size as every other control on these screens. */
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-card {
    width: min(100%, 520px);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: clamp(28px, 4vw, 44px);
}

.auth-card h1 {
    margin: 0 0 8px;
    letter-spacing: -0.025em;
    font-size: clamp(24px, 2.1vw, 30px);
    line-height: 1.5;
}

.auth-card > p {
    margin: 0 0 28px;
    font-size: 10px;
    line-height: 1.85;
}

.auth-card form {
    display: grid;
    gap: 9px;
}

.auth-card form > label {
    font-size: 10px;
    font-weight: 800;
}

.register-step > label {
    font-size: 10px;
    font-weight: 800;
}

.register-grid label > span {
    font-size: 10px;
    font-weight: 800;
}

.auth-field {
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 11px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 13px;
    transition: 0.18s;
}

.auth-field input {
    width: 100%;
    height: 45px;
    min-width: 0;
    border: 0 !important;
    outline: 0;
    font: inherit;
    font-size: 12px;
}

.password-toggle {
    border: 0;
    padding: 4px;
    display: inline-grid;
    place-items: center;
    /* 44px is the tappable box, not the glyph: .password-toggle > .bi keeps its own size.
       At 36px this was the smallest target on the sign-in screen. */
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
}

.auth-primary {
    min-height: 48px;
    border-radius: 11px;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    transition: 0.18s;
    border: 1px solid var(--action-primary);
}

.auth-secondary {
    min-height: 48px;
    border-radius: 11px;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    transition: 0.18s;
    border: 1.5px solid var(--action-primary);
}

.auth-primary:hover {
    transform: translateY(-1px);
}

.auth-primary:disabled {
    opacity: 0.6;
    cursor: wait;
}

.auth-primary b {
    font-size: 16px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 9px;
    margin: 6px 0;
}

.auth-divider:before {
    content: '';
    height: 1px;
    flex: 1;
}

.auth-divider:after {
    content: '';
    height: 1px;
    flex: 1;
}

.auth-copyright {
    display: block;
    text-align: center;
    font-size: 8px;
    margin-top: 25px;
}

.auth-mobile-logo {
    display: none;
}

.auth-message {
    padding: 11px 13px;
    border-radius: 10px;
    font-size: 10px;
    line-height: 1.7;
    margin: 4px 0;
}

.auth-message--error {
    border: 1px solid var(--line);
}

.auth-message.form-error {
    border: 1px solid var(--line);
}

.auth-message.form-success {
    border: 1px solid var(--line);
}

.auth-top-actions {
    position: absolute;
    inset-block-start: 28px;
    inset-inline: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.auth-top-actions .auth-language {
    position: static;
}

.auth-top-actions > a {
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    border: 1px solid var(--line);
    border-radius: 11px;
    min-height: 40px;
    padding: 9px 14px;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.auth-top-actions > a:hover {
    transform: translateY(-2px);
}

.auth-top-actions > a:focus-visible {
    outline: 0;
}

.auth-top-actions > a:active {
    transform: translateY(0);
}

.auth-page--register .auth-card {
    width: min(100%, 780px);
}

.auth-page--register .auth-form-side {
    padding-block-start: 86px;
    padding-inline: clamp(24px, 4vw, 64px);
}

.auth-security-note > b {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
}

.auth-security-note div {
    display: grid;
    gap: 3px;
}

.auth-security-note strong {
    font-size: 10px;
}

.auth-security-note span {
    font-size: 8px;
}

.auth-steps {
    display: grid;
    grid-template-columns: max-content 1fr max-content;
    align-items: center;
    gap: 10px;
    /* It is an <ol> for assistive technology; the list padding and markers would otherwise
       indent the whole indicator. */
    list-style: none;
    padding: 0;
    margin: 0 0 26px;
}

/* Matches both element names on purpose: the stylesheet is served immediately while the
   Razor view only changes on a rebuild, so the page must not be unstyled in between. */
.auth-steps > li,
.auth-steps > div {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 9px;
    font-weight: 700;
}

.auth-steps b {
    width: 29px;
    height: 29px;
    border-radius: 50%;
    display: grid;
    place-items: center;
}

.auth-steps i {
    height: 1px;
}

.lookup-row {
    display: grid;
    grid-template-columns: 1fr 155px;
    gap: 10px;
}

.lookup-row .auth-field {
    height: 50px;
}

.register-step {
    display: grid;
    min-width: 0;
    width: 100%;
}

.employee-match-card {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 10px;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid var(--line);
}

.employee-match-card div {
    display: grid;
    gap: 4px;
}

.employee-match-card span {
    font-size: 11px;
}

.employee-match-card strong {
    font-size: 13px;
}

.register-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 16px;
    min-width: 0;
    width: 100%;
}

.register-grid label {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.register-grid input {
    height: 45px;
    max-width: 100%;
    min-width: 0;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0 12px;
    font: inherit;
    font-size: 11px;
}

.register-grid small {
    font-size: 11px;
    overflow-wrap: anywhere;
}

.auth-primary--wide {
    max-width: 100%;
    min-width: 0;
    width: 100%;
    margin-top: 18px;
}

.field-help {
    margin: 5px 0 12px;
    color: #829087;
    font-size: 9px;
}

.change-employee {
    justify-self: end;
    border: 0;
    background: none;
    color: var(--primary);
    font: inherit;
    font-size: 9px;
    text-decoration: underline;
    margin: 7px 0 14px;
}

.employee-modal {
    width: min(900px, 100%);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px 15px;
}

.employee-modal > h3 {
    grid-column: 1/-1;
}
.employee-modal > p {
    grid-column: 1/-1;
}
.employee-modal > .modal-actions {
    grid-column: 1/-1;
}

.employee-modal > p {
    margin: 0 0 5px;
    color: var(--muted);
    font-size: 10px;
}

.employee-modal > .check {
    align-self: end;
    height: 39px;
}

.employee-modal .modal-actions {
    position: sticky;
    bottom: -25px;
    background: #fff;
    padding: 14px 0 2px;
    border-top: 1px solid var(--line);
}

.modal.employee-details {
    width: min(980px, 100%);
    padding: 0;
    gap: 0;
    overflow: hidden;
    grid-template-rows: auto minmax(0, 1fr) auto;
    color: var(--text);
    background: var(--surface);
}

.employee-details__body {
    overflow-y: auto;
    min-height: 0;
    padding: 22px 26px;
    overscroll-behavior: contain;
}

.employee-details__head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.employee-details__head .avatar,
.employee-details__head .employee-grid-photo {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 16px;
    font-size: 24px;
}

.employee-details__identity {
    min-width: 0;
    flex: 1;
}

.employee-details__head h3 {
    font-size: 20px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.employee-details__head p {
    margin: 4px 0;
    color: var(--muted);
    font-size: 12px;
}

.employee-details__number {
    color: var(--muted);
    font-size: 11px;
}

.employee-details__number bdi {
    margin-inline-start: 8px;
    color: var(--text);
    font-weight: 600;
}

.employee-details__status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 11px;
    white-space: nowrap;
}

.employee-details__status.is-active {
    color: var(--green);
    background: color-mix(in srgb, var(--green) 9%, transparent);
    border-color: color-mix(in srgb, var(--green) 25%, transparent);
}

.employee-details__status i {
    font-size: 6px;
}

.employee-details__sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 22px 28px;
}

.employee-details__section h4,
.employee-details__records h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 13px;
    line-height: 1.8;
}

.employee-details__section h4 i,
.employee-details__records h4 i {
    color: var(--green);
    font-size: 17px;
}

.employee-details__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 10px 0 0;
    gap: 0 18px;
}

.employee-details__field {
    min-width: 0;
    border-bottom: 1px solid var(--line);
    padding: 10px 0;
}

.employee-details__field dt {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.9;
}

.employee-details__field dd {
    margin: 4px 0 0;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.8;
    overflow-wrap: anywhere;
    text-align: start;
}

[dir='rtl'] .employee-details__field dd[dir='ltr'] {
    text-align: right;
}

.employee-details__records:empty {
    display: none;
}

.employee-details__records {
    margin-top: 22px;
    border-top: 1px solid var(--line);
    padding-top: 18px;
    font-size: 12px;
}

.employee-details__records-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.employee-details__records-heading a {
    color: var(--green);
    font-size: 11px;
}

.employee-details__counts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 12px 0 8px;
}

.employee-details__counts > div {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: color-mix(in srgb, var(--muted) 6%, transparent);
    border-radius: 8px;
}

.employee-details__counts strong {
    font-size: 18px;
}

.employee-details__counts span,
.employee-details__records small {
    color: var(--muted);
    font-size: 10px;
}

.employee-details__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 26px;
    border-top: 1px solid var(--line);
    background: var(--surface);
}

.employee-details__actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 14px;
    font-size: 11px;
}

.employee-details__actions .primary-button {
    margin-inline-start: auto;
}

.employee-details__actions button:not(.primary-button) {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: transparent;
    color: var(--text);
}

.employee-details :is(button, a):focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 3px;
}

.import-result {
    width: min(620px, 100%);
    gap: 14px;
}

.import-result > p {
    margin: 0;
    color: var(--muted);
    font-size: 10px;
}

.import-errors {
    max-height: 320px;
    overflow: auto;
    border: 1px solid #efd1cc;
    border-radius: 10px;
}

.import-errors > div {
    display: grid;
    grid-template-columns: 85px 1fr;
    gap: 10px;
    padding: 9px 11px;
    border-bottom: 1px solid #f2dfdc;
    font-size: 9px;
}

.import-errors > div:last-child {
    border: 0;
}

.import-errors b {
    color: #a7473e;
}

.secondary-button {
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--green);
    border-radius: 9px;
    padding: 9px 13px;
    font: inherit;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
}

.row-action:disabled {
    opacity: 0.42;
    cursor: not-allowed;
    filter: grayscale(1);
}

.row-action.danger {
    color: #b83d35;
    border-color: #efc0bc;
    background: #fff7f6;
}

.row-action.danger:hover {
    color: #fff;
    border-color: #b83d35;
    background: #b83d35;
}

html[data-theme='dark'] .row-action.danger {
    color: #ff8f87;
    border-color: #713d3b;
    background: #321f23;
}

html[data-theme='dark'] .row-action.danger:hover {
    color: #fff;
    border-color: #c64b44;
    background: #a9342f;
}

.auth-field > .bi {
    width: var(--icon-sm);
    height: var(--icon-sm);
    font-size: var(--icon-sm);
}

.password-icon > .bi {
    width: var(--icon-lg);
    height: var(--icon-lg);
    font-size: var(--icon-lg);
}

.password-toggle > .bi {
    font-size: var(--icon-md);
}

.auth-language > .bi {
    width: var(--icon-sm);
    height: var(--icon-sm);
    font-size: var(--icon-sm);
}

.auth-primary > .bi {
    width: var(--icon-sm);
    height: var(--icon-sm);
    font-size: var(--icon-sm);
}

.auth-secondary > .bi {
    width: var(--icon-sm);
    height: var(--icon-sm);
    font-size: var(--icon-sm);
}

.auth-top-actions > a > .bi {
    width: var(--icon-sm);
    height: var(--icon-sm);
    font-size: var(--icon-sm);
}

.auth-card--login .field-error {
    margin: 5px 4px 9px;
    font-size: 11px;
    line-height: 1.6;
}

.auth-card--login .auth-field-hint {
    display: block;
    margin: 5px 4px 9px;
    font-size: 9px;
    line-height: 1.65;
}

.auth-forgot-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    /* The link sat in a 20px row. Padding raises the target to 44px and the negative inline
       margin keeps the text where it was, so nothing moves on screen. */
    min-height: 44px;
    padding-inline: 3px;
    margin: 0 0 4px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.auth-forgot-link:hover {
    text-decoration: underline;
}

.auth-forgot-link .bi {
    font-size: var(--icon-sm);
}

.auth-recovery-card .password-icon {
    margin: 0 auto 10px;
}

.auth-recovery-card .auth-secondary {
    margin-top: 12px;
}

.auth-reset-card .auth-secondary {
    margin-top: 12px;
}

.auth-recovery-card .auth-message {
    margin: 10px 0;
}

.auth-recovery-visual .auth-visual__copy {
    max-width: 720px;
}

.auth-reset-page {
    position: relative;
    min-height: 100vh;
    padding-top: 78px;
}

.auth-reset-page > .auth-login-actions {
    position: absolute;
    inset-block-start: 24px;
    inset-inline-end: 28px;
}

.auth-reset-card {
    width: min(100%, 520px);
}

.auth-reset-card .auth-mobile-logo {
    display: block;
    margin-bottom: 8px;
}

.auth-reset-card .auth-mobile-logo img {
    width: 132px;
    height: auto;
}

.auth-visual--platform {
    padding: clamp(34px, 4.2vw, 66px);
}

.auth-visual--register .auth-visual__copy h2 {
    width: 100%;
    max-width: none;
    font-size: clamp(20px, 1.8vw, 36px);
    line-height: 1.35;
    letter-spacing: -0.035em;
    white-space: normal;
}

.auth-visual--register .auth-visual__copy p {
    font-size: 11px;
    line-height: 1.95;
}

.auth-platform-copy {
    width: 100%;
    max-width: 680px;
}

.auth-platform-copy h2 {
    margin-bottom: 13px;
    width: 100%;
    max-width: none;
    font-size: clamp(18px, 1.8vw, 34px);
    line-height: 1.35;
    letter-spacing: -0.035em;
    white-space: normal;
}

.auth-platform-copy > p {
    margin: 0;
    max-width: 590px;
    font-size: 11px;
    line-height: 1.95;
}

.auth-service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 25px;
}

.auth-service {
    min-width: 0;
    min-height: 69px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 13px;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.auth-service > .bi {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    font-size: 18px;
    border: 1px solid var(--line);
}

.auth-service > span {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.auth-service strong {
    font-size: 10px;
    font-weight: 800;
}

.auth-service small {
    font-size: 8px;
    line-height: 1.6;
}

.auth-trust-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    font-size: 9px;
}

.auth-trust-line > .bi {
    width: 20px;
    height: 20px;
    font-size: 17px;
}

.auth-visual--platform .auth-eyebrow {
    width: max-content;
    margin-bottom: 12px;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    letter-spacing: 0.01em;
}

.auth-service:hover {
    transform: translateY(-1px);
}

.auth-language:focus-visible {
    outline-offset: 3px;
    outline: none;
}

.auth-primary:focus-visible {
    outline-offset: 3px;
    outline: none;
}

.auth-secondary:focus-visible {
    outline-offset: 3px;
    outline: none;
}

.password-toggle:focus-visible {
    outline-offset: 3px;
    outline: none;
}

.auth-visual--platform .auth-visual__brand img {
    width: clamp(140px, 10vw, 170px);
    height: auto;
    max-height: 82px;
    padding: 0;
    border-radius: 0;
}

.auth-visual--register .auth-visual__brand img {
    width: clamp(140px, 10vw, 170px);
    height: auto;
    max-height: 82px;
    padding: 0;
    border-radius: 0;
}

.auth-visual--platform > small {
    width: 100%;
    align-self: center;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.7;
    letter-spacing: 0.01em;
}

.auth-login-actions {
    display: flex;
    align-items: center;
    gap: 9px;
    position: absolute;
    inset-block-start: 28px;
    inset-inline-end: 32px;
}

.auth-action-group {
    display: flex;
    align-items: center;
    gap: 9px;
}

.auth-login-actions .auth-language {
    position: static;
}

.auth-theme-toggle {
    /* The glyph keeps its 18px; only the target grows. */
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.auth-theme-toggle > .bi {
    width: 18px;
    height: 18px;
    font-size: 18px;
}

.auth-theme-toggle:focus-visible {
    outline-offset: 3px;
    outline: none;
}

html[data-theme='dark'] .field-help {
    color: #b4b4b1;
}

.auth-language .fi {
    width: 20px;
    height: 15px;
    flex: 0 0 20px;
    border-radius: 3px;
    background-size: cover;
}

.auth-field:focus-within {
    outline: 0;
}

.register-grid input:focus {
    outline: 0;
}

.auth-language:focus {
    outline: none;
}

.auth-theme-toggle:focus {
    outline: none;
}

.auth-primary:focus {
    outline: none;
}

.auth-secondary:focus {
    outline: none;
}

.password-toggle:focus {
    outline: none;
}

.auth-page--login {
    grid-template-columns: minmax(0, 44%) minmax(0, 56%);
}

.auth-page--login .auth-visual {
    padding: clamp(28px, 4vw, 64px);
    justify-content: center;
    align-items: center;
}

.auth-identity {
    width: min(100%, 475px);
    text-align: center;
}

.auth-identity__logo {
    display: block;
    width: 100%;
    height: auto;
}

.auth-identity h2 {
    margin: clamp(36px, 5vw, 72px) 0 0;
    font-size: clamp(19px, 1.7vw, 26px);
    font-weight: 600;
    line-height: 1.6;
}

.auth-page--login .auth-mobile-logo--emplex img {
    width: min(100%, 220px);
    height: auto;
    object-fit: contain;
}

.auth-page--login .auth-card {
    width: min(100%, 460px);
    padding: 32px;
    border-radius: 18px;
}

.auth-page--login .auth-card > p {
    font-size: 12px;
}

.auth-page--login form > label {
    font-size: 12px;
}

.auth-page--login .auth-field {
    min-height: 48px;
    border-radius: 10px;
}

.auth-page--login .auth-primary {
    min-height: 48px;
    border-radius: 10px;
}

.auth-page--login .auth-secondary {
    min-height: 48px;
    border-radius: 10px;
}

@media (max-width: 900px) {
    .auth-page {
        display: block;
        min-height: 100dvh;
        overflow: auto;
    }

    .auth-visual {
        display: none;
    }

    .auth-page[dir] .auth-form-side {
        min-height: 100dvh;
        padding: 78px 18px 30px;
        display: block;
    }

    .auth-language {
        inset-block-start: 18px;
        inset-inline-end: 18px;
    }

    .auth-card {
        margin: auto;
        padding: 27px 24px;
        border-radius: 20px;
    }

    .auth-mobile-logo {
        display: flex;
        justify-content: center;
        margin: -7px 0 23px;
    }

    .auth-mobile-logo img {
        width: 150px;
        height: 64px;
        object-fit: contain;
    }

    .auth-top-actions {
        inset-block-start: 18px;
        inset-inline: 18px;
    }

    .auth-page--register .auth-form-side {
        padding-block-start: 76px;
    }

    .auth-page--register .auth-mobile-logo {
        margin-bottom: 15px;
    }

    .auth-login-actions {
        inset-block-start: 18px;
        inset-inline-end: 18px;
    }

    .auth-page--login {
        grid-template-columns: 1fr;
    }

    .auth-page--login .auth-visual {
        display: none;
    }

    .auth-page--login .auth-form-side {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
        padding: 84px 20px 24px;
    }

    .auth-page--login .auth-card {
        margin: auto;
        padding: 26px 22px;
    }
}

@media (max-width: 560px) {
    .auth-card > p {
        margin-bottom: 20px;
    }

    .register-grid {
        grid-template-columns: 1fr;
    }

    .employee-match-card {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .lookup-row {
        grid-template-columns: 1fr;
    }

    .auth-steps span {
        font-size: 8px;
    }

    .auth-page--register .auth-card {
        padding-inline: 20px;
    }

    .auth-primary {
        min-height: 46px;
    }

    .auth-secondary {
        min-height: 46px;
    }

    .auth-mobile-logo img {
        width: 130px;
    }

    .auth-top-actions > a {
        max-width: none;
        white-space: nowrap;
        line-height: 1.4;
    }

    .auth-top-actions {
        gap: var(--space-2);
    }

    .auth-card h1 {
        font-size: 22px;
    }

    .auth-login-actions {
        gap: 6px;
    }

    .auth-action-group {
        gap: 6px;
    }
}

@media (max-width: 760px) {
    .employee-modal {
        grid-template-columns: 1fr;
        max-height: 92vh;
        padding: 20px;
    }

    .employee-modal > h3 {
        grid-column: 1;
    }
    .employee-modal > p {
        grid-column: 1;
    }
    .employee-modal > .modal-actions {
        grid-column: 1;
    }

    .employee-modal .modal-actions {
        bottom: -20px;
    }

    .auth-recovery-page .auth-visual {
        display: none;
    }

    .auth-reset-page {
        padding: 82px 16px 24px;
    }

    .auth-reset-page > .auth-login-actions {
        inset-inline-end: 16px;
    }
}

@media (max-width: 650px) {
    .employee-details__sections {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .employee-details__body {
        padding: 16px;
    }

    .employee-details__head {
        gap: 12px;
        flex-wrap: wrap;
    }

    .employee-details__head .avatar,
    .employee-details__head .employee-grid-photo {
        width: 56px;
        height: 56px;
    }

    .employee-details__head h3 {
        font-size: 16px;
    }

    .employee-details__counts > div {
        flex-direction: column;
        align-items: start;
        gap: 4px;
    }

    .employee-details__actions {
        padding: 12px 16px;
        gap: 6px;
    }

    .employee-details__actions button {
        flex: 1 1 auto;
        padding-inline: 8px;
    }

    .inline-actions {
        flex-wrap: nowrap;
    }

    .employee-details {
        max-height: 92vh;
    }
}

@media (max-height: 790px) and (min-width: 901px) {
    .auth-visual--platform {
        padding-block: 28px;
    }

    .auth-platform-copy h2 {
        font-size: clamp(29px, 3vw, 43px);
    }

    .auth-service-grid {
        margin-top: 17px;
        gap: 7px;
    }

    .auth-service {
        min-height: 58px;
        padding-block: 9px;
    }

    .auth-trust-line {
        margin-top: 12px;
    }
}

@media (min-width: 901px) and (max-width: 1180px) {
    .auth-service-grid {
        grid-template-columns: 1fr;
    }

    .auth-service:nth-child(n + 5) {
        display: none;
    }
}
