.sz-auth-shade {
    position: fixed;
    inset: 0;
    z-index: 880;
    display: grid;
    place-items: end center;
    padding: 16px;
    background: rgba(2, 7, 5, 0.82);
    opacity: 0;
    transition: opacity 180ms ease;
}

.sz-auth-shade.is-visible {
    opacity: 1;
}

.sz-auth-sheet {
    width: min(100%, 440px);
    max-height: min(84vh, 680px);
    overflow-y: auto;
    border: 1px solid rgba(52, 211, 153, 0.24);
    border-radius: 8px;
    background: #07110d;
    box-shadow: 0 -20px 70px rgba(0, 0, 0, 0.55);
    color: #f4f7f5;
    transform: translateY(18px);
    transition: transform 220ms ease;
}

.sz-auth-shade.is-visible .sz-auth-sheet {
    transform: translateY(0);
}

.sz-auth-sheet__head {
    position: relative;
    padding: 24px 24px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sz-auth-sheet__kicker {
    margin: 0 42px 8px 0;
    color: #34d399;
    font: 700 10px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: 0;
}

.sz-auth-sheet h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1.3;
    letter-spacing: 0;
}

.sz-auth-sheet__lead {
    margin: 10px 0 0;
    color: #9aa49f;
    font-size: 14px;
    line-height: 1.65;
}

.sz-auth-sheet__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: #aab4af;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.sz-auth-sheet__body {
    padding: 20px 24px 24px;
}

.sz-auth-view[hidden] {
    display: none;
}

.sz-auth-actions {
    display: grid;
    gap: 10px;
}

.sz-auth-primary,
.sz-auth-secondary,
.sz-auth-link {
    min-height: 48px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0;
    cursor: pointer;
}

.sz-auth-primary {
    border: 1px solid #34d399;
    background: #34d399;
    color: #03130d;
}

.sz-auth-secondary {
    border: 1px solid rgba(52, 211, 153, 0.32);
    background: transparent;
    color: #d8e2dd;
}

.sz-auth-link {
    min-height: 44px;
    border: 0;
    background: transparent;
    color: #8fa099;
    font-size: 13px;
}

.sz-auth-primary:disabled,
.sz-auth-secondary:disabled,
.sz-auth-link:disabled {
    cursor: wait;
    opacity: 0.5;
}

.sz-auth-fields {
    display: grid;
    gap: 14px;
}

.sz-auth-field label {
    display: block;
    margin-bottom: 7px;
    color: #8f9a95;
    font: 700 11px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: 0;
}

.sz-auth-field input {
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    outline: none;
    background: #020906;
    padding: 0 14px;
    color: #f4f7f5;
    font-size: 16px;
}

.sz-auth-field input:focus {
    border-color: rgba(52, 211, 153, 0.75);
}

.sz-auth-form-actions {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.sz-auth-sheet__note {
    margin: 16px 0 0;
    color: #727f79;
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

.sz-auth-feedback {
    margin: 0 0 14px;
    border-left: 2px solid #ef6a5b;
    padding: 9px 11px;
    background: rgba(239, 106, 91, 0.08);
    color: #f3aaa1;
    font-size: 13px;
    line-height: 1.55;
}

.sz-auth-feedback.is-success {
    border-left-color: #34d399;
    background: rgba(52, 211, 153, 0.08);
    color: #9de8cb;
}

.sz-auth-recovery {
    display: block;
    margin: 14px 0;
    border: 1px dashed rgba(52, 211, 153, 0.4);
    border-radius: 6px;
    padding: 14px;
    overflow-wrap: anywhere;
    color: #d8fff0;
    font: 700 14px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    text-align: center;
}

.sz-auth-toast {
    position: fixed;
    z-index: 910;
    left: 50%;
    bottom: calc(22px + env(safe-area-inset-bottom));
    width: max-content;
    max-width: calc(100vw - 32px);
    transform: translate(-50%, 12px);
    border: 1px solid rgba(52, 211, 153, 0.32);
    border-radius: 6px;
    background: #06100c;
    padding: 11px 14px;
    color: #c9f7e5;
    font-size: 13px;
    opacity: 0;
    transition: opacity 160ms ease, transform 160ms ease;
}

.sz-auth-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

body.sz-auth-open {
    overflow: hidden;
}

@media (min-width: 640px) {
    .sz-auth-shade {
        place-items: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sz-auth-shade,
    .sz-auth-sheet,
    .sz-auth-toast {
        transition: none;
    }
}
