/* Үндсэн дэвсгэр */
.fi-simple-layout {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    padding: 32px 16px;
    background:
        radial-gradient(
            ellipse at 15% 15%,
            rgb(59 130 246 / 18%),
            transparent 55%
        ),
        radial-gradient(
            ellipse at 85% 85%,
            rgb(16 185 129 / 14%),
            transparent 55%
        ),
        #f1f5f9;
}

/* Арын бүдэг лого */
.fi-simple-layout::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        url("/NEC_LOGO.png")
        center / min(85vw, 820px) auto
        no-repeat;
    opacity: 0.12;
    filter: blur(1px);
}

/* Нэвтрэх хайрцаг */
.fi-simple-main {
    width: 100%;
    max-width: 460px !important;
    position: relative;
    overflow: hidden;
    padding: 40px !important;
    border: 1px solid rgb(255 255 255 / 85%) !important;
    border-radius: 28px !important;
    background: rgb(255 255 255 / 72%) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow:
        0 24px 70px rgb(15 23 42 / 12%),
        inset 0 1px 0 rgb(255 255 255 / 90%) !important;
}

/* Хайрцгийн дээд өнгөт зураас */
.fi-simple-main::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(
        90deg,
        #2563eb,
        #38bdf8,
        #10b981
    );
}

/* Нэр болон гарчиг */
.fi-simple-main .fi-logo {
    height: auto !important;
    text-align: center;
    font-size: 17px !important;
    font-weight: 600 !important;
    line-height: 1.6 !important;
    color: #334155;
}

.fi-simple-main .fi-simple-header-heading {
    font-size: 28px !important;
    font-weight: 700 !important;
    letter-spacing: -0.5px;
    color: #0f172a;
}

.fi-simple-main .fi-fo-field-wrp-label {
    font-weight: 600;
    color: #334155;
}

/* Оруулах талбар */
.fi-simple-main .fi-input-wrp {
    border-radius: 13px !important;
    background: rgb(255 255 255 / 80%) !important;
    transition: box-shadow 180ms ease;
}

.fi-simple-main .fi-input {
    padding-top: 13px !important;
    padding-bottom: 13px !important;
    font-size: 15px;
}

.fi-simple-main .fi-input-wrp:focus-within {
    box-shadow:
        0 0 0 2px #3b82f6,
        0 0 0 6px rgb(59 130 246 / 10%) !important;
}

/* Нэвтрэх товч */
.fi-simple-main button[type="submit"] {
    min-height: 48px;
    border: none !important;
    border-radius: 13px !important;
    background: linear-gradient(
        135deg,
        #2563eb,
        #4f46e5
    ) !important;
    color: white !important;
    font-weight: 600;
    box-shadow: 0 8px 20px rgb(37 99 235 / 22%);
    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
}

.fi-simple-main button[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgb(37 99 235 / 30%);
}

/* Харанхуй горим */
.dark .fi-simple-layout {
    background:
        radial-gradient(
            ellipse at 15% 15%,
            rgb(37 99 235 / 22%),
            transparent 55%
        ),
        radial-gradient(
            ellipse at 85% 85%,
            rgb(16 185 129 / 12%),
            transparent 55%
        ),
        #0b1120;
}

.dark .fi-simple-layout::before {
    opacity: 0.09;
}

.dark .fi-simple-main {
    border-color: rgb(148 163 184 / 18%) !important;
    background: rgb(15 23 42 / 76%) !important;
    box-shadow: 0 24px 70px rgb(0 0 0 / 30%) !important;
}

.dark .fi-simple-main .fi-logo,
.dark .fi-simple-main .fi-fo-field-wrp-label {
    color: #cbd5e1;
}

.dark .fi-simple-main .fi-simple-header-heading {
    color: #f8fafc;
}

.dark .fi-simple-main .fi-input-wrp {
    background: rgb(30 41 59 / 80%) !important;
}

/* Гар утасны дэлгэц */
@media (max-width: 480px) {
    .fi-simple-main {
        padding: 28px 22px !important;
        border-radius: 22px !important;
    }
}

/* Хөдөлгөөн багасгах тохиргоо */
@media (prefers-reduced-motion: reduce) {
    .fi-simple-main *,
    .fi-simple-main *::before {
        transition: none !important;
    }

    .fi-simple-main button[type="submit"]:hover {
        transform: none;
    }
}
/* Нэвтрэх хайрцгийн дээрх жижиг лого */
.fi-simple-main .fi-simple-header::before {
    content: "";
    display: block;
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
    background: url("/NEC_LOGO.png") center / contain no-repeat;
}

/* Арын том логог нуух */
.fi-simple-layout::before {
    display: none;
}
/* Нэвтрэх хуудасны арын хээ */
.fi-simple-layout {
    background:
        linear-gradient(
            rgb(239 246 255 / 25%),
            rgb(241 245 249 / 35%)
        ),
        url("/login-bg.png") center / cover no-repeat;
}

.dark .fi-simple-layout {
    background:
        linear-gradient(
            rgb(11 17 32 / 85%),
            rgb(11 17 32 / 90%)
        ),
        url("/login-bg.png") center / cover no-repeat;
}
.fi-simple-main {
    background: rgb(255 255 255 / 45%) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.dark .fi-simple-main {
    background: rgb(15 23 42 / 45%) !important;
}
.fi-simple-main {
    background: rgb(255 255 255 / 12%) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgb(255 255 255 / 25%) !important;
    box-shadow: 0 12px 40px rgb(15 23 42 / 5%) !important;
}

.dark .fi-simple-main {
    background: rgb(15 23 42 / 12%) !important;
}
.fi-simple-main {
    border: none !important;
}

.fi-simple-main::before {
    content: "";
    position: absolute;
    inset: 0;
    height: auto;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, #2563eb, #38bdf8, #10b981);
    pointer-events: none;

    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
}
/* Нэвтрэх хуудасны гарчгийг том үсгээр харуулах */
.fi-simple-main .fi-logo {
    text-transform: uppercase !important;
}

/* Нэвтрэх гарчгийн давхар жижиг логог нуух */
.fi-simple-main .fi-logo img {
    display: none !important;
}
