.auth-layout {
    margin: 0;
}

.auth-login {
    --auth-ink: #17211d;
    --auth-muted: #6d7872;
    --auth-line: rgba(20, 45, 35, 0.13);
    --auth-panel: #ffffff;
    width: 100%;
    height: 100dvh;
    min-height: 36rem;
    display: grid;
    grid-template-columns: minmax(22rem, 0.76fr) minmax(34rem, 1.24fr);
    overflow: hidden;
    background: #f5f7f4;
    color: var(--auth-ink);
}

.auth-login__story {
    position: relative;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    color: #fff;
    isolation: isolate;
}

.auth-login__story-image,
.auth-login__story-shade {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.auth-login__story-image {
    background: url("../../../img/home-decor-2.jpg") center / cover no-repeat;
    transform: scale(1.02);
}

.auth-login__story-shade {
    z-index: -1;
    background:
        radial-gradient(circle at 80% 18%, rgba(var(--app-primary-rgb), 0.22), transparent 32%),
        linear-gradient(145deg, rgba(5, 20, 15, 0.94), rgba(9, 26, 21, 0.76) 56%, rgba(7, 18, 15, 0.94));
}

.auth-login__brand,
.auth-login__mobile-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
}

.auth-login__brand img,
.auth-login__mobile-brand img {
    width: 2.35rem;
    height: 2.35rem;
    object-fit: contain;
    border-radius: 0.72rem;
    background: rgba(255, 255, 255, 0.96);
    padding: 0.32rem;
}

.auth-login__brand span {
    display: grid;
}

.auth-login__brand strong {
    color: #fff;
    font-size: 0.9rem;
}

.auth-login__brand small {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.68rem;
}

.auth-login__story-copy {
    width: min(100%, 31rem);
    margin: auto 0;
}

.auth-login__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.auth-login__eyebrow .material-symbols-rounded {
    font-size: 0.95rem;
}

.auth-login__story h1 {
    max-width: 29rem;
    margin: 0.95rem 0 0.75rem;
    color: #fff;
    font-size: clamp(1.9rem, 2.8vw, 2.25rem);
    font-weight: 750;
    line-height: 1.08;
    letter-spacing: -0.038em;
}

.auth-login__story-copy > p {
    max-width: 27rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.67);
    font-size: 0.8rem;
    line-height: 1.65;
}

.auth-login__story-points {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 1.25rem;
}

.auth-login__story-points span {
    display: inline-flex;
    align-items: center;
    gap: 0.36rem;
    padding: 0.42rem 0.58rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.66rem;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.68rem;
    font-weight: 700;
    backdrop-filter: blur(12px);
}

.auth-login__story-points i,
.auth-login__story-footer i {
    font-size: 0.95rem;
}

.auth-login__story-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    color: rgba(255, 255, 255, 0.54);
    font-size: 0.64rem;
    font-weight: 700;
}

.auth-login__story-footer span {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
}

.auth-login__access {
    min-width: 0;
    min-height: 0;
    background:
        radial-gradient(circle at 88% 0%, rgba(var(--app-primary-rgb), 0.07), transparent 22rem),
        #f7f8f6;
}

.auth-login__access-inner {
    width: 100%;
    height: 100dvh;
    min-height: 36rem;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    padding: 1.25rem clamp(1.5rem, 4vw, 3.5rem) 0.9rem;
}

.auth-login__toolbar {
    min-height: 2.45rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.auth-login__mobile-brand {
    display: none;
    margin-right: auto;
}

.auth-login__mobile-brand strong {
    font-size: 0.88rem;
}

.theme-toggle--auth {
    width: 2.35rem;
    height: 2.35rem;
    display: grid;
    place-items: center;
    border: 1px solid var(--auth-line) !important;
    border-radius: 0.72rem;
    background: rgba(255, 255, 255, 0.86);
    color: var(--auth-ink);
    box-shadow: 0 7px 18px rgba(20, 45, 35, 0.06);
}

.auth-login__content {
    width: min(100%, 31rem);
    align-self: center;
    justify-self: center;
}

.auth-login__heading > span,
.auth-demo__heading > div > span {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--app-primary);
    font-size: 0.64rem;
    font-weight: 850;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.auth-login__heading h2 {
    margin: 0;
    color: var(--auth-ink);
    font-size: clamp(1.7rem, 3vw, 2.05rem);
    font-weight: 760;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.auth-login__heading p {
    margin: 0.38rem 0 0;
    color: var(--auth-muted);
    font-size: 0.78rem;
}

.auth-login__form {
    margin-top: 1.15rem;
}

.auth-field + .auth-field {
    margin-top: 0.8rem;
}

.auth-field label {
    display: block;
    margin: 0 0 0.34rem;
    color: var(--auth-ink);
    font-size: 0.7rem;
    font-weight: 800;
}

.auth-field__label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-wrap > .material-symbols-rounded {
    position: absolute;
    left: 0.85rem;
    z-index: 1;
    color: #89958f;
    font-size: 1.05rem;
    pointer-events: none;
}

.auth-input {
    width: 100%;
    height: 2.85rem;
    padding: 0 2.7rem 0 2.45rem;
    border: 1px solid var(--auth-line);
    border-radius: 0.76rem;
    outline: 0;
    background: rgba(255, 255, 255, 0.94);
    color: var(--auth-ink);
    font-size: 0.8rem;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.auth-input:focus {
    border-color: color-mix(in srgb, var(--app-primary) 58%, white);
    background: #fff;
    box-shadow: 0 0 0 0.2rem rgba(var(--app-primary-rgb), 0.1);
}

.auth-password-toggle {
    position: absolute;
    right: 0.56rem;
    width: 1.85rem;
    height: 1.85rem;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 0.55rem;
    background: transparent;
    color: #849089;
}

.auth-password-toggle:hover,
.auth-password-toggle:focus-visible {
    background: rgba(var(--app-primary-rgb), 0.08);
    color: var(--app-primary);
}

.auth-password-toggle .material-symbols-rounded {
    font-size: 1rem;
}

.auth-link {
    color: var(--app-primary);
    font-size: 0.68rem;
    font-weight: 800;
    text-decoration: none;
}

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

.auth-row {
    min-height: 2.15rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0.55rem 0 0.72rem;
}

.auth-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.48rem;
    color: var(--auth-muted);
    font-size: 0.7rem;
}

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

.auth-switch input {
    width: 0.98rem;
    height: 0.98rem;
    margin: 0;
    accent-color: var(--app-primary);
}

.auth-login__secure {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    color: var(--auth-muted);
    font-size: 0.64rem;
    font-weight: 700;
}

.auth-login__secure i {
    color: var(--app-primary);
    font-size: 0.9rem;
}

.auth-button {
    width: 100%;
    min-height: 2.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.58rem;
    border: 0;
    border-radius: 0.78rem;
    background: linear-gradient(135deg, color-mix(in srgb, var(--app-primary) 92%, white), color-mix(in srgb, var(--app-primary) 76%, #07140f));
    color: #fff;
    font-size: 0.76rem;
    font-weight: 820;
    box-shadow: 0 12px 26px rgba(var(--app-primary-rgb), 0.18);
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

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

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

.auth-button i {
    font-size: 1rem;
}

.auth-alert {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 0.75rem;
    padding: 0.66rem 0.75rem;
    border: 1px solid transparent;
    border-radius: 0.72rem;
    font-size: 0.72rem;
}

.auth-alert > .material-symbols-rounded {
    font-size: 1.05rem;
}

.auth-alert--danger {
    border-color: #fecaca;
    background: #fff1f2;
    color: #9f1239;
}

.auth-alert--success {
    border-color: #a7f3d0;
    background: #ecfdf5;
    color: #065f46;
}

.auth-alert__text {
    flex: 1;
    font-weight: 650;
    line-height: 1.4;
}

.auth-alert__close {
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 1rem;
    opacity: 0.62;
}

.auth-demo {
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--auth-line);
}

.auth-demo__heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.auth-demo__heading h3 {
    margin: 0;
    color: var(--auth-ink);
    font-size: 0.9rem;
    font-weight: 780;
}

.auth-demo__heading > a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.22rem;
    color: var(--app-primary);
    font-size: 0.66rem;
    font-weight: 800;
    text-decoration: none;
}

.auth-demo__heading > a i {
    font-size: 0.82rem;
}

.auth-demo__complete {
    margin-top: 0.58rem;
}

.auth-demo__complete > button {
    width: 100%;
    min-height: 3.2rem;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.65rem;
    padding: 0.52rem 0.65rem;
    border: 1px solid color-mix(in srgb, var(--app-primary) 22%, var(--auth-line));
    border-radius: 0.78rem;
    background: linear-gradient(120deg, rgba(var(--app-primary-rgb), 0.09), rgba(255, 255, 255, 0.86));
    color: var(--auth-ink);
    text-align: left;
    transition: border-color 0.16s ease, transform 0.16s ease;
}

.auth-demo__complete > button:hover {
    border-color: rgba(var(--app-primary-rgb), 0.38);
    transform: translateY(-1px);
}

.auth-demo__complete-icon {
    width: 2.1rem;
    height: 2.1rem;
    display: grid;
    place-items: center;
    border-radius: 0.62rem;
    background: var(--app-primary);
    color: #fff;
}

.auth-demo__complete-icon i {
    font-size: 1.08rem;
}

.auth-demo__complete > button > span:nth-child(2) {
    min-width: 0;
    display: grid;
}

.auth-demo__complete strong {
    overflow: hidden;
    font-size: 0.74rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-demo__complete small {
    color: var(--auth-muted);
    font-size: 0.61rem;
}

.auth-demo__complete > button > i {
    color: var(--app-primary);
    font-size: 0.95rem;
}

.auth-demo__roles {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.38rem;
    margin-top: 0.42rem;
}

.auth-demo__role {
    min-width: 0;
}

.auth-demo__role button {
    width: 100%;
    min-height: 3.05rem;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 0.2rem;
    padding: 0.38rem 0.2rem;
    border: 1px solid var(--auth-line);
    border-radius: 0.7rem;
    background: rgba(255, 255, 255, 0.78);
    color: var(--auth-ink);
    transition: border-color 0.16s ease, background 0.16s ease;
}

.auth-demo__role button:hover,
.auth-demo__role button:focus-visible {
    border-color: rgba(var(--app-primary-rgb), 0.34);
    background: rgba(var(--app-primary-rgb), 0.06);
}

.auth-demo__role .material-symbols-rounded {
    color: var(--app-primary);
    font-size: 1rem;
}

.auth-demo__role strong {
    max-width: 100%;
    overflow: hidden;
    font-size: 0.58rem;
    font-weight: 780;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-login__legal {
    width: min(100%, 31rem);
    justify-self: center;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.55rem;
    color: #8a958f;
    font-size: 0.59rem;
}

[data-bs-theme="dark"] .auth-login {
    --auth-ink: #edf5f0;
    --auth-muted: #9daca4;
    --auth-line: rgba(200, 225, 212, 0.14);
    --auth-panel: #111a16;
    background: #0b120f;
}

[data-bs-theme="dark"] .auth-login__access {
    background:
        radial-gradient(circle at 88% 0%, rgba(var(--app-primary-rgb), 0.12), transparent 22rem),
        #0c1410;
}

[data-bs-theme="dark"] .theme-toggle--auth,
[data-bs-theme="dark"] .auth-input,
[data-bs-theme="dark"] .auth-demo__role button {
    background: rgba(21, 33, 27, 0.94);
    color: var(--auth-ink);
}

[data-bs-theme="dark"] .auth-input:focus {
    background: #14211b;
}

[data-bs-theme="dark"] .auth-demo__complete > button {
    background: linear-gradient(120deg, rgba(var(--app-primary-rgb), 0.17), rgba(18, 29, 23, 0.86));
    color: var(--auth-ink);
}

[data-bs-theme="dark"] .auth-alert--danger {
    border-color: rgba(251, 113, 133, 0.3);
    background: rgba(136, 19, 55, 0.24);
    color: #fecdd3;
}

[data-bs-theme="dark"] .auth-alert--success {
    border-color: rgba(52, 211, 153, 0.28);
    background: rgba(6, 95, 70, 0.24);
    color: #a7f3d0;
}

@media (max-width: 991.98px) {
    .auth-layout {
        overflow: auto;
    }

    .auth-login {
        min-height: 100dvh;
        height: auto;
        display: block;
        overflow: visible;
    }

    .auth-login__story {
        display: none;
    }

    .auth-login__access-inner {
        width: min(100%, 37rem);
        min-height: 100dvh;
        height: auto;
        margin: 0 auto;
        padding: 1rem clamp(1rem, 5vw, 2rem) 0.8rem;
    }

    .auth-login__mobile-brand {
        display: inline-flex;
    }

    .auth-login__content {
        padding: 0.85rem 0;
    }
}

@media (max-width: 575.98px) {
    .auth-login__access-inner {
        min-height: 100svh;
        padding-inline: 1rem;
    }

    .auth-login__heading h2 {
        font-size: 1.6rem;
    }

    .auth-login__heading p {
        font-size: 0.74rem;
    }

    .auth-login__secure {
        display: none;
    }

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

    .auth-demo__role button {
        min-height: 2.85rem;
    }

    .auth-login__legal {
        font-size: 0.56rem;
    }
}

@media (min-width: 992px) and (max-height: 680px) {
    .auth-login__access-inner {
        padding-block: 0.7rem;
    }

    .auth-login__heading h2 {
        font-size: 1.65rem;
    }

    .auth-login__heading p {
        display: none;
    }

    .auth-login__form {
        margin-top: 0.8rem;
    }

    .auth-demo {
        margin-top: 0.7rem;
        padding-top: 0.65rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-button,
    .auth-demo__complete > button,
    .auth-demo__role button {
        transition: none;
    }
}
