/* Authentication layout: Dawap identity, DevOps illustration and a spacious form. */
.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 100svh;
}

.auth-story {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 36px clamp(32px, 4.4vw, 80px) 28px;
    color: #fff;
    background: #101318;
}

.auth-story::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: radial-gradient(ellipse at 0 0, #00d0a20c, transparent 55%);
    content: "";
    pointer-events: none;
}

.auth-brand {
    gap: 12px;
}

.auth-brand strong {
    font-size: 30px;
    font-weight: 750;
}

.auth-brand small {
    color: #a1aca9;
    font-size: 10px;
    letter-spacing: .16em;
}

.auth-story-content {
    position: relative;
    width: 100%;
    max-width: 650px;
    margin: auto;
    padding: 52px 0 24px;
}

.auth-story-content .eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    color: #a1b9b0;
    font-size: 10px;
    letter-spacing: .12em;
}

.status-dot {
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--mint);
    box-shadow: 0 0 12px #00d0a24d;
}

.auth-story h1 {
    margin: 0 0 24px;
    font-size: clamp(36px, 3.65vw, 62px);
    font-weight: 650;
    line-height: 1.12;
    letter-spacing: -.045em;
}

.auth-story h1 span {
    color: var(--mint);
}

.auth-intro {
    max-width: 430px;
    margin: 0;
    color: #a7b2b0;
    font-size: 15px;
    line-height: 1.85;
}

.auth-illustration {
    position: relative;
    margin: 18px -30px 0;
}

.auth-illustration img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    mix-blend-mode: lighten;
    mask-image: linear-gradient(to bottom, transparent, #000 8%, #000 88%, transparent);
}

.auth-illustration figcaption {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin: -2px 30px 0;
    color: #a7bab2;
    font-size: 10px;
    letter-spacing: .035em;
}

.auth-illustration figcaption span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.auth-illustration figcaption span::before {
    width: 4px;
    height: 4px;
    border-radius: 1px;
    background: #00d0a2;
    content: "";
}

.auth-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ffffff0c;
    color: #84918e;
    font-size: 10px;
    letter-spacing: .025em;
}

.auth-footer > span:first-child {
    color: #b2bfba;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: .14em;
}

.auth-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 60px clamp(28px, 4vw, 76px);
    background: radial-gradient(ellipse at 50% 40%, #fff, #f2f7f5 78%);
}

.auth-card {
    width: min(100%, 540px);
    padding: clamp(36px, 3.6vw, 56px);
    border: 1px solid #dfe9e4;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 20px 70px #173f2e07, 0 2px 8px #173f2e03;
}

.auth-card > .eyebrow {
    margin: 28px 0 12px;
    color: #71867c;
    font-size: 10px;
    letter-spacing: .14em;
}

.auth-card > h2 {
    margin-bottom: 16px;
    color: #19382e;
    font-size: clamp(34px, 2.7vw, 42px);
    font-weight: 650;
    letter-spacing: -.04em;
}

.auth-card > .muted {
    margin-bottom: 0;
    font-size: 15px;
    line-height: 1.7;
}

.auth-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border: 1px solid #d3ede1;
    border-radius: 16px;
    color: #008467;
    background: #edf8f2;
    box-shadow: 0 3px 8px #00846704;
}

.auth-icon svg {
    width: 27px;
    height: 27px;
}

.auth-form {
    display: grid;
    gap: 24px;
    margin-top: 34px;
}

.auth-form label {
    display: grid;
    gap: 11px;
    font-size: 13px;
    font-weight: 600;
}

.auth-input {
    position: relative;
    display: block;
    color: #85988d;
}

.auth-input > svg,
.auth-input-lock {
    position: absolute;
    top: 50%;
    left: 17px;
    display: flex;
    transform: translateY(-50%);
    pointer-events: none;
}

.auth-input-lock svg {
    width: 20px;
    height: 20px;
}

.auth-input:focus-within {
    color: #008467;
}

.auth-form input {
    width: 100%;
    min-height: 58px;
    padding: 16px 18px;
    border: 1px solid #ceded5;
    border-radius: 9px;
    color: #19382e;
    background: #fcfefd;
    font-size: 15px;
    font-weight: 400;
    transition: border-color .15s, box-shadow .15s;
}

.auth-input input {
    padding-left: 49px;
}

.auth-form input::placeholder {
    color: #8b9c93;
}

.auth-form input:hover {
    border-color: #a9c6b8;
}

.auth-form input:focus {
    border-color: #008467;
    background: #fff;
    box-shadow: 0 0 0 4px #0084670d;
}

.button-primary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 58px;
    margin-top: 5px;
    padding: 16px 20px;
    border: 1px solid #008467;
    border-radius: 9px;
    color: #fff;
    background: #008467;
    box-shadow: 0 6px 16px #00846714;
    font-size: 15px;
    font-weight: 600;
    transition: background .15s, box-shadow .15s;
}

.button-primary > span {
    font-size: 20px;
    line-height: 1;
}

.button-primary:hover {
    background: #006e55;
    box-shadow: 0 8px 20px #00846720;
}

.auth-caption {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 28px 0 0;
    color: #71867c;
    font-size: 11px;
    text-align: center;
}

.auth-caption svg {
    flex-shrink: 0;
}

.alert,
.notice {
    margin: 24px 0 0;
    padding: 13px 15px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.6;
}

.alert {
    border: 1px solid #f0cbc8;
    color: #953f37;
    background: #fff0ef;
}

.notice {
    border: 1px solid #c6e9d8;
    color: #006c50;
    background: #e6f7f0;
}

.cancel-form {
    margin-top: 24px;
    text-align: center;
}

.button-link {
    padding: 5px;
    border: 0;
    color: #687e74;
    background: transparent;
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.mfa-qr {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 24px auto;
    background: #fff;
}

.mfa-key {
    color: #687e74;
    font-size: 13px;
}

.mfa-key summary {
    cursor: pointer;
}

.mfa-key code {
    display: block;
    margin: 12px 0;
    padding: 12px;
    color: #19382e;
    background: #f0f6f4;
    overflow-wrap: anywhere;
}

@media (max-width: 1100px) {
    .auth-shell {
        grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    }

    .auth-story {
        padding: 32px 28px 24px;
    }

    .auth-panel {
        padding: 40px 24px;
    }

    .auth-card {
        padding: 36px 30px;
    }

    .auth-story-content .eyebrow {
        max-width: 230px;
        font-size: 9px;
        line-height: 1.8;
    }

    .auth-illustration {
        margin-right: -26px;
        margin-left: -26px;
    }

    .auth-illustration figcaption {
        gap: 12px;
        margin-right: 26px;
        margin-left: 26px;
        font-size: 9px;
    }
}

@media (min-width: 701px) and (max-height: 820px) {
    .auth-story {
        padding-top: 26px;
        padding-bottom: 20px;
    }

    .auth-brand img {
        width: 48px;
        height: 48px;
    }

    .auth-brand strong {
        font-size: 28px;
    }

    .auth-story-content {
        padding-top: 28px;
        padding-bottom: 18px;
    }

    .auth-story-content .eyebrow {
        margin-bottom: 16px;
    }

    .auth-story h1 {
        margin-bottom: 18px;
        font-size: clamp(32px, 3.4vw, 48px);
    }

    .auth-intro {
        font-size: 14px;
        line-height: 1.75;
    }

    .auth-illustration {
        margin-top: 8px;
    }

    .auth-illustration img {
        height: 30svh;
        max-height: 245px;
        transform: scale(1.35);
        transform-origin: 50% 46%;
    }

    .auth-illustration figcaption {
        margin-top: 14px;
    }

    .auth-footer {
        margin-top: 16px;
        padding-top: 14px;
    }

    .auth-panel {
        padding-top: 28px;
        padding-bottom: 28px;
    }

    .auth-card {
        padding: 32px clamp(28px, 3.4vw, 44px);
    }

    .auth-icon {
        width: 52px;
        height: 52px;
    }

    .auth-card > .eyebrow {
        margin-top: 22px;
    }

    .auth-form {
        gap: 22px;
        margin-top: 28px;
    }

    .auth-form input,
    .button-primary {
        min-height: 56px;
    }

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

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

    .auth-story {
        padding: 24px;
    }

    .auth-story-content,
    .auth-footer {
        display: none;
    }

    .auth-brand img {
        width: 44px;
        height: 44px;
    }

    .auth-brand strong {
        font-size: 25px;
    }

    .auth-panel {
        min-height: calc(100svh - 92px);
        padding: 36px 20px;
    }

    .auth-card {
        width: min(100%, 480px);
        padding: 32px 26px;
        border-radius: 16px;
    }

    .auth-card > h2 {
        font-size: 34px;
    }

    .auth-form {
        gap: 22px;
        margin-top: 28px;
    }

    .auth-form input,
    .button-primary {
        min-height: 56px;
    }

    .auth-caption {
        max-width: 270px;
        font-size: 10px;
    }
}
