.altrix-auth-login,
.altrix-auth-register {
    min-height: 100vh;
    background: #f7fbfa;
    color: #15201d;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.altrix-auth-login *,
.altrix-auth-register * {
    box-sizing: border-box;
}

.auth-login-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(440px, .95fr);
    min-height: 100vh;
}

.auth-login-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 36px clamp(32px, 5vw, 72px) 30px;
    color: #fff;
    background: #087f67;
}

.auth-login-panel::after {
    position: absolute;
    right: -150px;
    bottom: -260px;
    width: 520px;
    height: 520px;
    border: 1px solid rgb(255 255 255 / 12%);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.auth-brand {
    position: relative;
    z-index: 1;
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 11px;
    color: inherit;
    text-decoration: none;
}

.auth-brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgb(255 255 255 / 30%);
    border-radius: 12px;
    background: rgb(255 255 255 / 14%);
    color: #fff;
    font-size: 22px;
    font-weight: 750;
}

.auth-brand strong,
.auth-brand small {
    display: block;
}

.auth-brand strong {
    font-size: 15px;
    letter-spacing: .06em;
}

.auth-brand small {
    margin-top: 3px;
    color: rgb(255 255 255 / 78%);
    font-size: 11px;
}

.auth-login-copy {
    position: relative;
    z-index: 1;
    max-width: 560px;
    margin: clamp(38px, 8vh, 84px) 0 30px;
}

.auth-eyebrow {
    display: block;
    color: rgb(255 255 255 / 74%);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
}

.auth-login-copy h1,
.auth-register-aside h2 {
    margin: 19px 0 14px;
    color: #fff;
    font-size: clamp(34px, 4vw, 48px);
    font-weight: 700;
    letter-spacing: -.045em;
    line-height: 1.08;
}

.auth-login-copy > p,
.auth-register-aside > p {
    max-width: 470px;
    margin: 0;
    color: rgb(255 255 255 / 84%);
    font-size: 15px;
    line-height: 1.65;
}

.auth-feature-list {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 13px;
    margin: 27px 0 0;
    padding: 0;
    list-style: none;
}

.auth-feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    font-size: 13px;
}

.auth-feature-list li > .ai {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgb(255 255 255 / 23%);
    border-radius: 10px;
    background: rgb(255 255 255 / 10%);
    color: #fff;
    font-size: 16px;
}

.auth-workspace-preview {
    position: relative;
    z-index: 1;
    width: min(410px, 92%);
    margin: auto 12px 0 auto;
    padding: 17px;
    border: 1px solid rgb(255 255 255 / 35%);
    border-radius: 14px 14px 0 0;
    background: rgb(255 255 255 / 12%);
}

.auth-preview-top,
.auth-preview-metrics {
    display: flex;
    align-items: center;
}

.auth-preview-top {
    gap: 9px;
    color: rgb(255 255 255 / 90%);
    font-size: 11px;
    font-weight: 600;
}

.auth-preview-mark {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 7px;
    background: rgb(255 255 255 / 20%);
}

.auth-preview-status {
    margin-left: auto;
    padding: 4px 8px;
    border-radius: 20px;
    background: rgb(184 243 107 / 20%);
    color: #e1ffc1;
    font-size: 9px;
}

.auth-preview-metrics {
    gap: 10px;
    margin-top: 14px;
}

.auth-preview-metrics > span {
    flex: 1;
    padding: 12px;
    border: 1px solid rgb(255 255 255 / 17%);
    border-radius: 9px;
    background: rgb(255 255 255 / 9%);
}

.auth-preview-metrics b,
.auth-preview-metrics small {
    display: block;
}

.auth-preview-metrics b {
    font-size: 15px;
}

.auth-preview-metrics small {
    margin-top: 4px;
    color: rgb(255 255 255 / 73%);
    font-size: 9px;
}

.auth-preview-line {
    display: flex;
    height: 34px;
    align-items: end;
    gap: 8px;
    margin-top: 12px;
}

.auth-preview-line i {
    flex: 1;
    border-radius: 4px 4px 0 0;
    background: rgb(255 255 255 / 35%);
}

.auth-preview-line i:nth-child(1),
.auth-preview-line i:nth-child(5) { height: 45%; }
.auth-preview-line i:nth-child(2),
.auth-preview-line i:nth-child(6) { height: 70%; }
.auth-preview-line i:nth-child(3),
.auth-preview-line i:nth-child(7) { height: 56%; }
.auth-preview-line i:nth-child(4) { height: 100%; background: #b8f36b; }

.auth-login-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 28px;
    background: #f7fbfa;
}

.auth-login-card {
    width: min(450px, 100%);
    padding: 34px;
    border: 1px solid #e3eae7;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 36px rgb(16 40 34 / 6%);
}

.auth-form-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 11px;
    background: #edf9f3;
    color: #087f67;
    font-size: 18px;
}

.auth-login-card h2,
.auth-success h1 {
    margin: 20px 0 5px;
    color: #15201d;
    font-size: 27px;
    font-weight: 700;
    letter-spacing: -.035em;
}

.auth-muted {
    margin: 0;
    color: #66736f;
    font-size: 13px;
    line-height: 1.6;
}

.auth-field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 7px;
    margin: 19px 0;
    color: #283632;
    font-size: 12px;
    font-weight: 600;
}

.auth-field input,
.auth-field textarea {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #d9e3de;
    border-radius: 9px;
    outline: none;
    background: #fff;
    color: #15201d;
    font: inherit;
    font-size: 13px;
    font-weight: 400;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.auth-field input::placeholder,
.auth-field textarea::placeholder {
    color: #99a49f;
}

.auth-field input:focus,
.auth-field textarea:focus {
    border-color: #087f67;
    box-shadow: 0 0 0 3px rgb(8 127 103 / 10%);
}

.auth-field textarea {
    min-height: 98px;
    resize: vertical;
}

.auth-password {
    position: relative;
    display: block;
}

.auth-password input {
    padding-right: 46px;
}

.auth-password-toggle {
    position: absolute;
    top: 2px;
    right: 2px;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #66736f;
    cursor: pointer;
}

.auth-form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 3px 0 18px;
    color: #66736f;
    font-size: 11px;
}

.auth-form-options label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.auth-form-options input,
.auth-plan-choice input {
    accent-color: #087f67;
}

.auth-form-options a,
.auth-login-links a,
.auth-register-terms a {
    color: #087f67;
    text-decoration: none;
}

.auth-form-options a:hover,
.auth-login-links a:hover,
.auth-register-terms a:hover {
    text-decoration: underline;
}

.auth-submit,
.auth-secondary {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 17px;
    border: 1px solid transparent;
    border-radius: 9px;
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
    text-decoration: none;
    transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.auth-submit {
    background: #087f67;
    color: #fff;
}

.auth-submit:hover {
    transform: translateY(-1px);
    background: #066b57;
}

.auth-login-card > .auth-submit {
    width: 100%;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 17px 0;
    color: #99a49f;
    font-size: 10px;
    text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
    height: 1px;
    flex: 1;
    background: #e8eeeb;
    content: "";
}

.auth-eds-button {
    display: flex;
    width: 100%;
    min-height: 54px;
    align-items: center;
    gap: 11px;
    padding: 8px 12px;
    border: 1px solid #cfe1da;
    border-radius: 9px;
    background: #f8fbfa;
    color: #1d302b;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.auth-eds-button:hover {
    border-color: #69aa96;
    background: #edf9f3;
    transform: translateY(-1px);
}

.auth-eds-button:disabled {
    opacity: .65;
    cursor: wait;
    transform: none;
}

.auth-eds-button > span:last-child {
    display: grid;
    gap: 2px;
}

.auth-eds-button strong {
    font-size: 12px;
}

.auth-eds-button small {
    color: #66736f;
    font-size: 10px;
}

.auth-eds-icon {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    border-radius: 8px;
    background: #087f67;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
}

.auth-eds-register {
    max-width: 390px;
    margin: 16px 0 8px;
}

.auth-eds-status {
    min-height: 16px;
    margin: 7px 0 0;
    color: #66736f;
    font-size: 10px;
    line-height: 1.5;
}

.auth-eds-status.is-success {
    color: #087f67;
    font-weight: 650;
}

.auth-eds-status.is-error {
    color: #b5423c;
}

.auth-egov-mobile,
.auth-egov-mobile-link,
[data-egov-mobile-status] {
    display: none;
}

.auth-egov-mobile-link {
    width: 100%;
    margin-top: 9px;
    padding: 13px 16px;
    border-radius: 9px;
    background: #087f67;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.auth-egov-mobile-link:not([hidden]),
[data-egov-mobile-status]:not(:empty) {
    display: block;
}

.auth-submit-link {
    margin-top: 12px;
}

.auth-secondary {
    border-color: #d9e3de;
    background: #fff;
    color: #283632;
}

.auth-secondary:hover {
    background: #f5f8f7;
}

.auth-login-links {
    display: grid;
    justify-items: center;
    gap: 15px;
    margin-top: 19px;
    padding-top: 17px;
    border-top: 1px solid #e8eeeb;
    color: #66736f;
    font-size: 11px;
}

.auth-login-links > span {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
}

.auth-lab-link {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 11px;
    margin-top: 12px;
    padding: 12px 13px;
    border: 1px solid #bfe2d3;
    border-radius: 12px;
    background: linear-gradient(135deg, #f1fbf5, #e7f7ef);
    color: #087f67;
    text-align: left;
    text-decoration: none;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}

.auth-lab-link:hover {
    border-color: #087f67;
    box-shadow: 0 7px 18px rgba(8, 127, 103, .12);
    text-decoration: none;
    transform: translateY(-1px);
}

.auth-lab-link-icon {
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    background: #087f67;
    color: #fff;
    font-size: 16px;
}

.auth-lab-link > span:nth-child(2) {
    flex: 1;
}

.auth-lab-link strong {
    color: #15201d;
    font-size: 12px;
}

.auth-lab-link small {
    color: #6c827a;
    font-size: 10px;
}

.auth-lab-link > .ai-arrow {
    font-size: 15px;
}

.auth-login-links .auth-legal {
    color: #8c9894;
    font-size: 10px;
    text-align: center;
}

.altrix-auth-register {
    background: #f7fbfa;
}

.auth-register-header {
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px max(24px, calc((100vw - 1200px) / 2));
    border-bottom: 1px solid #e3eae7;
    background: #fff;
}

.auth-brand-light {
    color: #15201d;
}

.auth-brand-light .auth-brand-mark {
    border-color: #d9e8e1;
    background: #edf9f3;
    color: #087f67;
}

.auth-brand-light small {
    color: #66736f;
}

.auth-register-login {
    color: #66736f;
    font-size: 12px;
    text-decoration: none;
}

.auth-register-login strong {
    margin-left: 4px;
    color: #087f67;
}

.auth-register-layout {
    display: grid;
    width: min(1200px, calc(100% - 48px));
    grid-template-columns: minmax(0, 1.35fr) minmax(270px, .78fr);
    gap: 18px;
    align-items: stretch;
    margin: 30px auto;
}

.auth-register-form {
    min-width: 0;
    padding: 24px;
    border: 1px solid #e3eae7;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgb(16 40 34 / 4%);
}

.auth-register-pane h1,
.auth-success h1 {
    margin: 0 0 7px;
    font-size: 26px;
    letter-spacing: -.035em;
}

.auth-register-pane > .auth-muted {
    margin-bottom: 18px;
}

.auth-steps {
    --step-progress: 0%;
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 1px 0 24px;
}

.auth-steps::before,
.auth-steps::after {
    position: absolute;
    top: 14px;
    right: 12%;
    left: 12%;
    height: 3px;
    border-radius: 99px;
    content: "";
}

.auth-steps::before {
    background: #e6eeea;
}

.auth-steps::after {
    right: auto;
    width: var(--step-progress);
    max-width: 76%;
    background: #087f67;
}

.auth-step {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 5px;
    color: #8c9894;
    font-size: 10px;
}

.auth-step b {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    background: #eef2f0;
    color: #8c9894;
    font-size: 11px;
}

.auth-step.active,
.auth-step.done {
    color: #087f67;
}

.auth-step.active {
    font-weight: 700;
}

.auth-step.active b,
.auth-step.done b {
    background: #087f67;
    color: #fff;
}

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

.auth-register-grid .auth-field {
    margin: 9px 0;
}

.auth-field-wide {
    grid-column: 1 / -1;
}

.auth-step-actions {
    display: flex;
    gap: 10px;
    margin-top: 17px;
}

.auth-step-actions > * {
    min-width: 112px;
}

.auth-step-actions .auth-submit {
    margin-left: auto;
}

.auth-plan-choice {
    display: flex;
    gap: 10px;
    margin: 22px 0;
}

.auth-plan-choice label {
    display: flex;
    min-height: 48px;
    flex: 1;
    align-items: center;
    gap: 8px;
    padding: 0 13px;
    border: 1px solid #e3eae7;
    border-radius: 9px;
    color: #283632;
    font-size: 12px;
    cursor: pointer;
}

.auth-register-terms {
    margin: 15px 0 0;
    color: #8c9894;
    font-size: 10px;
    line-height: 1.6;
}

.auth-register-aside {
    position: relative;
    overflow: hidden;
    min-height: 520px;
    padding: 28px 24px;
    border-radius: 16px;
    background: #087f67;
    color: #fff;
}

.auth-register-aside h2 {
    margin-top: 15px;
    font-size: 30px;
}

.auth-register-aside > p {
    font-size: 13px;
}

.auth-register-aside .auth-feature-list {
    gap: 15px;
    margin-top: 24px;
}

.auth-register-steps {
    display: grid;
    gap: 11px;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgb(255 255 255 / 23%);
}

.auth-register-steps span {
    color: rgb(255 255 255 / 88%);
    font-size: 11px;
}

.auth-register-steps b {
    margin-right: 10px;
    color: #dfffba;
    letter-spacing: .06em;
}

.auth-success {
    max-width: 560px;
    padding: 24px 2px;
}

.auth-success p {
    max-width: 480px;
    margin: 10px 0 18px;
    color: #66736f;
    font-size: 13px;
    line-height: 1.65;
}

.altrix-auth-register .form-error {
    margin: 0 0 18px;
    border: 1px solid #f3d3d0;
    border-left: 3px solid #e05252;
    border-radius: 8px;
    background: #fff5f4;
    color: #a33b35;
}

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

    .auth-login-panel {
        min-height: auto;
        padding: 24px 28px;
    }

    .auth-login-copy {
        margin: 28px 0 4px;
    }

    .auth-login-copy h1 {
        font-size: 34px;
    }

    .auth-workspace-preview {
        display: none;
    }

    .auth-login-main {
        padding: 28px 20px 38px;
    }

    .auth-register-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .auth-register-aside {
        min-height: 0;
    }
}

@media (max-width: 620px) {
    .auth-egov-mobile {
        display: flex;
        margin-top: 9px;
    }

    [data-egov-mobile-status]:not(:empty) {
        display: block;
    }

    .auth-login-panel {
        padding: 20px 20px 22px;
    }

    .auth-login-copy {
        margin-top: 23px;
    }

    .auth-login-copy h1 {
        font-size: 30px;
    }

    .auth-login-copy > p {
        font-size: 13px;
    }

    .auth-feature-list {
        grid-template-columns: 1fr 1fr;
        gap: 11px;
    }

    .auth-feature-list li {
        align-items: flex-start;
        font-size: 10px;
        line-height: 1.4;
    }

    .auth-feature-list li > .ai {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .auth-login-main {
        padding: 18px 14px 28px;
    }

    .auth-login-card {
        padding: 24px 20px;
    }

    .auth-register-header {
        min-height: 64px;
        padding: 10px 16px;
    }

    .auth-register-layout {
        width: calc(100% - 28px);
        gap: 14px;
        margin: 14px auto;
    }

    .auth-register-form {
        padding: 17px 15px;
    }

    .auth-register-pane h1 {
        font-size: 22px;
    }

    .auth-register-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .auth-register-grid .auth-field-wide {
        grid-column: auto;
    }

    .auth-steps {
        margin-bottom: 20px;
    }

    .auth-step {
        font-size: 9px;
    }

    .auth-step-actions > * {
        min-width: 0;
        flex: 1;
    }

    .auth-step-actions .auth-submit {
        margin-left: 0;
    }

    .auth-register-aside {
        padding: 22px 18px;
    }

    .auth-register-aside .auth-feature-list {
        grid-template-columns: 1fr;
    }
}
