.fl-auth-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 4000;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}
.fl-auth-modal.is-open {
    display: flex;
}
.fl-auth-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(32, 22, 64, 0.62);
}
.fl-auth-dialog {
    position: relative;
    width: 100%;
    max-width: 460px;
    max-height: calc(100vh - 48px);
    overflow: hidden;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 80px rgba(32, 22, 64, 0.28);
    padding: 0;
}
.fl-auth-scroll {
    max-height: calc(100vh - 48px);
    overflow: auto;
    padding: 20px 16px 16px;
    border-radius: 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.fl-auth-scroll::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}
.fl-auth-dialog::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 20px 20px 0 0;
    background: linear-gradient(90deg, #524293, #ffad1f);
}
.fl-auth-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: #f4f2fb;
    color: #524293;
    font-size: 22px;
    line-height: 32px;
    cursor: pointer;
}
.fl-auth-brand {
    margin: 0 0 6px;
    color: #524293;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2px;
    text-align: center;
}
.fl-auth-dialog h2 {
    margin: 0 0 8px;
    color: #32325d;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
}
.fl-auth-lead {
    margin: 0 0 18px;
    color: #8898aa;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}
.fl-auth-step {
    margin-bottom: 16px;
    text-align: center;
}
.fl-auth-step-head {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 4px;
}
.fl-auth-num {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #524293;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 28px;
    text-align: center;
}
.fl-auth-step h6 {
    margin: 0;
    color: #32325d;
    font-size: 14px;
    font-weight: 700;
}
.fl-auth-step p,
.fl-auth-fallback {
    margin: 0;
    color: #8898aa;
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
}
.fl-auth-qr {
    width: 212px;
    height: 212px;
    margin: 8px auto 14px;
    padding: 12px;
    background: #fff;
    border: 1px solid #e4dff3;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(82, 66, 147, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}
.fl-auth-qr svg {
    display: block;
    width: 188px;
    height: 188px;
}
.fl-auth-key {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px auto 16px;
    padding: 8px 8px 8px 12px;
    background: #f7f5fc;
    border: 1px solid #e4dff3;
    border-radius: 10px;
}
.fl-auth-key code {
    flex: 1;
    color: #32325d;
    font-size: 13px;
    letter-spacing: 0.6px;
    word-break: break-all;
    background: transparent;
    text-align: center;
}
.fl-auth-field {
    display: block;
    width: 100%;
    height: 52px;
    margin-top: 8px;
    border: 1.5px solid #e4dff3;
    border-radius: 12px;
    background: #fff;
    color: #32325d;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 6px;
    text-align: center;
}
.fl-auth-field:focus {
    outline: none;
    border-color: #524293;
    box-shadow: 0 0 0 3px rgba(82, 66, 147, 0.15);
}
.fl-auth-field.fl-auth-field-recovery {
    letter-spacing: 2px;
    font-size: 18px;
}
.fl-auth-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}
.fl-auth-actions .btn {
    width: 100%;
    height: 46px;
    border-radius: 10px;
    font-weight: 700;
}
.fl-auth-text-btn {
    border: 0;
    background: transparent;
    color: #524293;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
}
.fl-auth-error {
    margin: 10px 0 0;
    color: #f5365c;
    font-size: 13px;
    text-align: center;
}
.fl-auth-codes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
}
.fl-auth-codes span {
    padding: 10px 8px;
    border-radius: 10px;
    background: #f7f5fc;
    border: 1px solid #e4dff3;
    color: #32325d;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 14px;
    text-align: center;
}
.fl-auth-form label {
    display: block;
    margin-bottom: 0;
    color: #32325d;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}
