.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(480px, 0.95fr);
    background: #f8fafb;
}

.auth-product {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 42px clamp(42px, 7vw, 116px);
    background: #17231f;
    color: #f7fbf8;
}

.auth-product__content,
.auth-entry,
.auth-panel {
    width: 100%;
}

.auth-branding {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}

.auth-branding__logo {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.auth-branding__name,
.auth-branding__tagline {
    display: block;
}

.auth-branding__name {
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.1;
}

.auth-branding__tagline {
    margin-top: 4px;
    color: #aebfb6;
    font-size: 12px;
    font-weight: 600;
}

.auth-product__statement {
    max-width: 570px;
    margin: clamp(88px, 15vh, 180px) 0 auto;
}

.auth-eyebrow {
    margin: 0 0 12px;
    color: var(--bs-primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.auth-eyebrow--inverse {
    color: #8ee1b5;
}

.auth-product h1 {
    max-width: 540px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(38px, 4vw, 62px);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.05;
}

.auth-product__intro {
    max-width: 500px;
    margin: 22px 0 0;
    color: #b7c7bf;
    font-size: 17px;
    line-height: 1.65;
}

.auth-product__proof {
    display: grid;
    gap: 0;
    max-width: 570px;
    margin: clamp(48px, 8vh, 84px) 0 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid rgba(220, 239, 228, 0.16);
}

.auth-product__proof li {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 18px 0;
    border-bottom: 1px solid rgba(220, 239, 228, 0.16);
}

.auth-product__proof i {
    color: #8ee1b5;
    font-size: 21px;
}

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

.auth-product__proof strong {
    color: #ffffff;
    font-size: 14px;
    font-weight: 750;
}

.auth-product__proof small {
    margin-top: 4px;
    color: #aebfb6;
    font-size: 13px;
    line-height: 1.45;
}

.auth-product__footer {
    max-width: 420px;
    margin: 54px 0 0;
    color: #8ca097;
    font-size: 12px;
    line-height: 1.55;
}

.auth-entry {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 32px clamp(32px, 7vw, 104px) 42px;
    background: #f8fafb;
}

.auth-entry__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
}

.auth-entry__status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #66756d;
    font-size: 12px;
    font-weight: 700;
}

.auth-entry__status i {
    color: #168250;
    font-size: 17px;
}

.theme-toggle--auth {
    display: inline-grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 8px;
    color: #24352c;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(20, 37, 28, 0.08);
}

.auth-panel {
    max-width: 456px;
    margin: auto;
}

.auth-panel__inner {
    padding: 28px 0;
}

.auth-heading h2 {
    margin: 0;
    color: #17231f;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.15;
}

.auth-heading > p:last-child {
    margin: 10px 0 0;
    color: #68756f;
    font-size: 14px;
    line-height: 1.55;
}

.auth-demo {
    margin: 28px 0;
    padding: 16px;
    border: 1px solid #dbe4df;
    border-radius: 8px;
    background: #ffffff;
}

.auth-demo__header,
.auth-demo__credential,
.auth-row,
.auth-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.auth-demo__label,
.auth-demo__role {
    display: block;
}

.auth-demo__label {
    color: #203128;
    font-size: 13px;
    font-weight: 800;
}

.auth-demo__role {
    margin-top: 3px;
    color: #718079;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.auth-demo__use {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    color: var(--bs-primary);
    background: transparent;
    font-size: 12px;
    font-weight: 800;
}

.auth-demo__use i {
    font-size: 17px;
}

.auth-demo__credentials {
    display: grid;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #e7ece9;
}

.auth-demo__credential {
    min-height: 28px;
}

.auth-demo__credential > span {
    min-width: 64px;
    color: #76837d;
    font-size: 12px;
}

.auth-demo__credential code {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    color: #24352c;
    font-family: Inter, sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-icon-button,
.auth-password-toggle {
    display: inline-grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    border: 0;
    border-radius: 6px;
    color: #61736a;
    background: transparent;
}

.auth-icon-button:hover,
.auth-password-toggle:hover {
    color: #193429;
    background: #edf4ef;
}

.auth-icon-button i,
.auth-password-toggle i {
    font-size: 18px;
}

.auth-field {
    margin-top: 20px;
}

.auth-field label {
    display: block;
    margin-bottom: 8px;
    color: #26372e;
    font-size: 13px;
    font-weight: 750;
}

.auth-input {
    width: 100%;
    height: 50px;
    border: 1px solid #cfdad4;
    border-radius: 8px;
    padding: 0 14px;
    color: #18251e;
    background: #ffffff;
    font-size: 14px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-input::placeholder {
    color: #93a199;
}

.auth-input:focus {
    outline: 0;
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 3px rgba(var(--app-primary-rgb), 0.13);
}

.auth-password-control {
    position: relative;
}

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

.auth-password-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
}

.auth-row {
    margin: 18px 0 22px;
}

.auth-switch {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #63736a;
    font-size: 13px;
    line-height: 1;
}

.auth-switch label {
    margin: 0;
    cursor: pointer;
}

.auth-switch input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--bs-primary);
}

.auth-link {
    color: var(--bs-primary);
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
}

.auth-link:hover {
    text-decoration: underline;
}

.auth-button {
    width: 100%;
    min-height: 52px;
    padding: 0 18px;
    border: 0;
    border-radius: 8px;
    color: #ffffff;
    background: var(--bs-primary);
    box-shadow: 0 12px 24px rgba(var(--app-primary-rgb), 0.22);
    font-size: 14px;
    font-weight: 800;
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.auth-button i {
    font-size: 19px;
}

.auth-button:hover {
    box-shadow: 0 16px 28px rgba(var(--app-primary-rgb), 0.3);
    transform: translateY(-1px);
}

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

.auth-button:focus-visible,
.auth-demo__use:focus-visible,
.auth-icon-button:focus-visible,
.auth-password-toggle:focus-visible,
.theme-toggle--auth:focus-visible {
    outline: 3px solid rgba(var(--app-primary-rgb), 0.28);
    outline-offset: 2px;
}

.auth-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 24px;
    color: #77867e;
    font-size: 12px;
    text-align: center;
}

.auth-meta i {
    color: #168250;
    font-size: 16px;
}

.auth-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0 20px;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 8px;
}

.auth-alert--success {
    color: #0c5134;
    border-color: #b5ddc5;
    background: #edfbf1;
}

.auth-alert--danger {
    color: #8a1f35;
    border-color: #f0bec9;
    background: #fff1f3;
}

.auth-alert__icon {
    display: grid;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    place-items: center;
    border-radius: 6px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
}

.auth-alert--success .auth-alert__icon {
    background: #168250;
}

.auth-alert--danger .auth-alert__icon {
    background: #be3450;
}

.auth-alert__text {
    font-size: 13px;
    font-weight: 650;
    line-height: 1.45;
}

.auth-alert__close {
    margin-left: auto;
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
    font-size: 18px;
    line-height: 1;
}

html[data-bs-theme="dark"] body.auth-layout,
html[data-bs-theme="dark"] .auth-shell,
html[data-bs-theme="dark"] .auth-entry {
    background: #121915;
}

html[data-bs-theme="dark"] .auth-product {
    background: #0b100e;
}

html[data-bs-theme="dark"] .auth-entry__status,
html[data-bs-theme="dark"] .auth-heading > p:last-child,
html[data-bs-theme="dark"] .auth-demo__role,
html[data-bs-theme="dark"] .auth-demo__credential > span,
html[data-bs-theme="dark"] .auth-switch,
html[data-bs-theme="dark"] .auth-meta {
    color: #9baaa2;
}

html[data-bs-theme="dark"] .auth-heading h2,
html[data-bs-theme="dark"] .auth-field label,
html[data-bs-theme="dark"] .auth-demo__label,
html[data-bs-theme="dark"] .auth-demo__credential code {
    color: #edf5f0;
}

html[data-bs-theme="dark"] .theme-toggle--auth,
html[data-bs-theme="dark"] .auth-demo,
html[data-bs-theme="dark"] .auth-input {
    border-color: #314139;
    color: #edf5f0;
    background: #1b2620;
}

html[data-bs-theme="dark"] .theme-toggle--auth {
    color: #dbe8e0;
}

html[data-bs-theme="dark"] .auth-demo__credentials {
    border-color: #314139;
}

html[data-bs-theme="dark"] .auth-icon-button,
html[data-bs-theme="dark"] .auth-password-toggle {
    color: #aabbb1;
}

html[data-bs-theme="dark"] .auth-icon-button:hover,
html[data-bs-theme="dark"] .auth-password-toggle:hover {
    color: #ffffff;
    background: #2a3931;
}

html[data-bs-theme="dark"] .auth-input::placeholder {
    color: #718279;
}

@media (max-width: 991.98px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-product {
        min-height: auto;
        padding: 28px 28px 30px;
    }

    .auth-product__statement {
        margin: 54px 0 0;
    }

    .auth-product h1 {
        max-width: 620px;
        font-size: 42px;
    }

    .auth-product__proof,
    .auth-product__footer {
        display: none;
    }

    .auth-entry {
        min-height: auto;
        padding: 24px 28px 40px;
    }

    .auth-panel {
        margin: 32px auto 0;
    }
}

@media (max-width: 575.98px) {
    .auth-product,
    .auth-entry {
        padding-right: 20px;
        padding-left: 20px;
    }

    .auth-product__statement {
        margin-top: 42px;
    }

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

    .auth-product__intro {
        font-size: 15px;
    }

    .auth-entry__status {
        font-size: 11px;
    }

    .auth-panel {
        margin-top: 20px;
    }

    .auth-heading h2 {
        font-size: 28px;
    }

    .auth-demo__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .auth-demo__credential code {
        font-size: 11px;
    }

    .auth-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .auth-meta {
        align-items: flex-start;
    }
}
