/* TEUDIT+ — auth pages (login + 2FA) */

.fi-simple-layout {
    background:
        radial-gradient(circle at 20% 20%, rgb(14 165 233 / 0.12), transparent 45%),
        radial-gradient(circle at 80% 0%, rgb(37 99 235 / 0.1), transparent 40%),
        linear-gradient(180deg, rgb(248 250 252) 0%, rgb(241 245 249) 100%);
}

.dark .fi-simple-layout {
    background:
        radial-gradient(circle at 20% 20%, rgb(14 165 233 / 0.18), transparent 45%),
        radial-gradient(circle at 80% 0%, rgb(37 99 235 / 0.14), transparent 40%),
        linear-gradient(180deg, rgb(15 23 42) 0%, rgb(2 6 23) 100%);
}

.fi-simple-main-ctn {
    padding-inline: 1rem;
}

.fi-simple-main {
    max-width: 32rem;
    border-radius: 1.25rem;
    border: 1px solid rgb(14 165 233 / 0.12);
    box-shadow:
        0 24px 48px -12px rgb(15 23 42 / 0.12),
        0 0 0 1px rgb(255 255 255 / 0.6) inset;
    padding-block: 1.75rem 2rem;
    padding-inline: 1.75rem;
}

.dark .fi-simple-main {
    border-color: rgb(56 189 248 / 0.16);
    box-shadow:
        0 24px 48px -12px rgb(0 0 0 / 0.45),
        0 0 0 1px rgb(255 255 255 / 0.04) inset;
}

.fi-simple-header {
    gap: 0.375rem;
    margin-bottom: 0.25rem;
}

.fi-simple-layout .fi-logo,
.fi-simple-layout img.fi-logo {
    margin-bottom: 0 !important;
    width: auto !important;
    max-width: 100%;
    display: block;
    margin-inline: auto;
}

.fi-simple-layout img.fi-logo,
.fi-simple-layout .fi-logo img {
    height: auto !important;
    width: min(320px, 100%) !important;
    max-width: 100% !important;
    object-fit: contain;
}

.fi-simple-header-heading {
    font-size: 1.125rem !important;
    line-height: 1.35;
    letter-spacing: -0.01em;
    font-weight: 600 !important;
    margin-top: 0.125rem;
}

.fi-simple-header-subheading {
    max-width: 26rem;
    font-size: 0.975rem !important;
    line-height: 1.6;
    color: rgb(71 85 105);
}

.dark .fi-simple-header-subheading {
    color: rgb(148 163 184);
}

.teudit-auth-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.teudit-auth-heading-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 9999px;
    background: rgb(224 242 254);
    color: rgb(3 105 161);
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.375rem 0.875rem;
}

.dark .teudit-auth-heading-badge {
    background: rgb(12 74 110 / 0.35);
    color: rgb(125 211 252);
}

.teudit-auth-heading-badge svg {
    width: 1rem;
    height: 1rem;
}

.teudit-auth-heading-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: rgb(15 23 42);
}

.dark .teudit-auth-heading-title {
    color: rgb(248 250 252);
}

.teudit-mfa-note {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-block: 1rem 1.25rem;
    padding: 0.875rem 1rem;
    border-radius: 0.875rem;
    background: rgb(240 249 255);
    border: 1px solid rgb(186 230 253);
    color: rgb(12 74 110);
    font-size: 0.9375rem;
    line-height: 1.55;
    text-align: start;
}

.dark .teudit-mfa-note {
    background: rgb(12 74 110 / 0.22);
    border-color: rgb(56 189 248 / 0.25);
    color: rgb(186 230 253);
}

.teudit-mfa-note svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.fi-simple-main .fi-fo-field-wrp:has(.fi-one-time-code-input-ctn) {
    align-items: center;
}

.fi-simple-main .fi-fo-field-wrp:has(.fi-one-time-code-input-ctn) .fi-fo-field-wrp-label {
    width: 100%;
    text-align: center;
}

.fi-simple-main .fi-one-time-code-input-ctn {
    direction: ltr;
    height: 3rem;
    margin-inline: auto;
}

.fi-simple-main .fi-one-time-code-input-ctn > .fi-one-time-code-input-digit-field {
    border-radius: 0.75rem;
    background: rgb(248 250 252);
}

.dark .fi-simple-main .fi-one-time-code-input-ctn > .fi-one-time-code-input-digit-field {
    background: rgb(15 23 42);
}

.fi-simple-main .fi-ac-btn-action[type='submit'],
.fi-simple-main button[type='submit'].fi-btn {
    min-height: 3rem;
    border-radius: 0.875rem;
    font-size: 1rem;
    font-weight: 600;
}

.fi-simple-main .fi-fo-field-wrp-label span {
    font-weight: 600;
}
