﻿/* =========================================================
   AIZAAC Admin Login
   Keep original ipx class names because login / 2FA JS depends on them.
========================================================= */

:root {
    --az-bg: #f4f8ff;
    --az-navy: #10182f;
    --az-navy-2: #172341;
    --az-text: #5f6f8b;
    --az-blue: #2868ff;
    --az-cyan: #00b8e8;
    --az-purple: #6548f5;
    --az-line: rgba(120, 151, 190, 0.22);
    --az-card: rgba(255, 255, 255, 0.78);
    --az-white: #ffffff;
    --az-shadow: 0 30px 90px rgba(35, 65, 120, 0.18);
    --az-radius: 34px;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
}

body {
    font-family: Inter, Pretendard, "Segoe UI", Arial, sans-serif;
    background: var(--az-bg);
    color: var(--az-navy);
}

/* Page */
.ipx-login-page {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: radial-gradient(circle at 8% 12%, rgba(103, 72, 245, 0.16), transparent 34%), radial-gradient(circle at 20% 88%, rgba(0, 184, 232, 0.18), transparent 32%), linear-gradient(135deg, #f7faff 0%, #eef7ff 42%, #ffffff 100%);
}

.ipx-login-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.ipx-login-grid {
    position: absolute;
    inset: -40px;
    opacity: 0.36;
    background-image: linear-gradient(rgba(37, 91, 190, 0.075) 1px, transparent 1px), linear-gradient(90deg, rgba(37, 91, 190, 0.075) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 72%);
}

.ipx-login-glow {
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 999px;
    filter: blur(34px);
    opacity: 0.55;
}

.ipx-login-glow--one {
    left: -170px;
    top: -120px;
    background: radial-gradient(circle, rgba(101, 72, 245, 0.28), transparent 62%);
}

.ipx-login-glow--two {
    right: -140px;
    bottom: -160px;
    background: radial-gradient(circle, rgba(0, 184, 232, 0.26), transparent 64%);
}

.azaac-orbit {
    position: absolute;
    border-radius: 999px;
    border: 1px solid rgba(40, 104, 255, 0.13);
}

.azaac-orbit--one {
    width: 620px;
    height: 620px;
    left: -180px;
    bottom: -240px;
}

.azaac-orbit--two {
    width: 430px;
    height: 430px;
    right: 110px;
    top: -210px;
}

/* Main shell */
.ipx-login-shell {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ipx-login-layout {
    width: min(1480px, 100%);
    min-height: calc(100vh - 56px);
    display: grid;
    grid-template-columns: minmax(420px, 0.9fr) minmax(520px, 1fr);
    border-radius: 42px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.54);
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow: var(--az-shadow);
    backdrop-filter: blur(24px);
}

/* Left visual */
.ipx-login-visual {
    position: relative;
    padding: 78px 72px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient(circle at 20% 18%, rgba(101, 72, 245, 0.19), transparent 36%), radial-gradient(circle at 83% 72%, rgba(0, 184, 232, 0.19), transparent 38%), linear-gradient(145deg, rgba(245, 249, 255, 0.95), rgba(228, 244, 255, 0.8));
}

    .ipx-login-visual::before {
        content: "";
        position: absolute;
        width: 640px;
        height: 640px;
        right: -270px;
        top: -190px;
        border-radius: 50%;
        border: 1px solid rgba(40, 104, 255, 0.13);
    }

    .ipx-login-visual::after {
        content: "";
        position: absolute;
        width: 260px;
        height: 260px;
        left: -90px;
        bottom: -70px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(101, 72, 245, 0.18), transparent 64%);
    }

.ipx-login-brand {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 54px;
}

.ipx-login-mark {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.95), transparent 24%), linear-gradient(135deg, var(--az-purple), var(--az-blue) 54%, var(--az-cyan));
    box-shadow: 0 18px 40px rgba(40, 104, 255, 0.32);
}

.ipx-login-lens {
    width: 23px;
    height: 23px;
    border-radius: 50%;
    display: block;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 0 0 6px rgba(16, 24, 47, 0.12), 0 0 0 7px rgba(255, 255, 255, 0.18);
}

.ipx-login-company {
    font-size: 15px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0.26em;
    color: var(--az-blue);
}

.ipx-login-company-sub {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #7a8ba8;
    text-transform: uppercase;
}

.ipx-login-headline {
    position: relative;
    z-index: 2;
    max-width: 630px;
    font-size: clamp(48px, 5.2vw, 82px);
    line-height: 0.96;
    letter-spacing: -0.075em;
    font-weight: 950;
    color: var(--az-navy);
}

    .ipx-login-headline::first-line {
        color: var(--az-navy);
    }

.ipx-login-description {
    position: relative;
    z-index: 2;
    max-width: 560px;
    margin-top: 30px;
    color: #5d6d89;
    font-size: 19px;
    line-height: 1.78;
    font-weight: 650;
}

.ipx-login-specs {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.ipx-login-spec {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.88);
    color: #394965;
    font-size: 13px;
    font-weight: 850;
    box-shadow: 0 12px 34px rgba(33, 75, 140, 0.08);
}

.ipx-login-spec__dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--az-purple), var(--az-cyan));
    box-shadow: 0 0 0 5px rgba(40, 104, 255, 0.11);
}

/* CSS visual object */
.azaac-visual-card {
    position: relative;
    z-index: 2;
    width: min(520px, 100%);
    min-height: 190px;
    margin-top: 58px;
    padding: 28px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid rgba(255, 255, 255, 0.92);
    box-shadow: 0 24px 70px rgba(38, 79, 136, 0.12);
    display: grid;
    grid-template-columns: 132px 1fr;
    gap: 26px;
    align-items: center;
    backdrop-filter: blur(18px);
}

.azaac-core {
    position: relative;
    width: 124px;
    height: 124px;
    border-radius: 34px;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.96), transparent 18%), linear-gradient(135deg, #6548f5 0%, #2868ff 48%, #00b8e8 100%);
    box-shadow: 0 24px 54px rgba(40, 104, 255, 0.28);
    overflow: hidden;
}

    .azaac-core strong {
        position: relative;
        z-index: 2;
        color: #fff;
        font-size: 36px;
        font-weight: 950;
        letter-spacing: -0.08em;
    }

    .azaac-core span {
        position: absolute;
        border-radius: 50%;
        border: 1px solid rgba(255, 255, 255, 0.4);
    }

        .azaac-core span:nth-child(1) {
            width: 92px;
            height: 92px;
        }

        .azaac-core span:nth-child(2) {
            width: 64px;
            height: 64px;
            transform: translate(22px, -18px);
        }

        .azaac-core span:nth-child(3) {
            width: 160px;
            height: 160px;
            opacity: 0.35;
        }

.azaac-visual-lines {
    display: grid;
    gap: 14px;
}

    .azaac-visual-lines div {
        height: 13px;
        border-radius: 999px;
        background: linear-gradient(90deg, rgba(40, 104, 255, 0.20), rgba(0, 184, 232, 0.06));
    }

        .azaac-visual-lines div:nth-child(1) {
            width: 90%;
        }

        .azaac-visual-lines div:nth-child(2) {
            width: 68%;
        }

        .azaac-visual-lines div:nth-child(3) {
            width: 78%;
        }

.azaac-status {
    grid-column: 1 / -1;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #536681;
    font-weight: 850;
    font-size: 13px;
}

    .azaac-status span {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #25d486;
        box-shadow: 0 0 0 7px rgba(37, 212, 134, 0.13);
    }

    .azaac-status em {
        font-style: normal;
    }

/* Right card */
.ipx-login-card-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 58px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.52));
}

.ipx-login-card {
    width: min(520px, 100%);
    padding: 44px;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(218, 229, 245, 0.95);
    box-shadow: 0 28px 80px rgba(30, 63, 120, 0.14);
    backdrop-filter: blur(22px);
}

.ipx-login-card__top {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 34px;
}

.ipx-login-card__icon {
    flex: 0 0 auto;
    width: 58px;
    height: 58px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--az-purple), var(--az-blue) 54%, var(--az-cyan));
    box-shadow: 0 18px 44px rgba(40, 104, 255, 0.28);
}

    .ipx-login-card__icon i {
        font-size: 24px;
    }

.azaac-card-eyebrow {
    margin: 0 0 8px;
    color: var(--az-blue);
    font-size: 12px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.ipx-login-card__top h1 {
    margin: 0;
    color: var(--az-navy);
    font-size: 38px;
    line-height: 1.02;
    letter-spacing: -0.055em;
    font-weight: 950;
}

.ipx-login-card__top p:not(.azaac-card-eyebrow) {
    margin: 10px 0 0;
    color: #6a7a97;
    font-size: 15px;
    line-height: 1.55;
    font-weight: 650;
}

/* Form */
.ipx-login-form {
    width: 100%;
}

.ipx-login-field {
    margin-bottom: 18px;
}

    .ipx-login-field label,
    .ipx-twofactor-field label {
        display: block;
        margin-bottom: 9px;
        color: #263650;
        font-size: 13px;
        font-weight: 900;
    }

.ipx-login-input {
    position: relative;
}

    .ipx-login-input i {
        position: absolute;
        left: 18px;
        top: 50%;
        transform: translateY(-50%);
        color: #8a9ab6;
        font-size: 18px;
        z-index: 2;
    }

    .ipx-login-input input {
        width: 100%;
        height: 62px;
        border: 1px solid rgba(152, 171, 202, 0.32);
        border-radius: 20px;
        outline: none;
        background: rgba(255, 255, 255, 0.86);
        padding: 0 18px 0 52px;
        color: var(--az-navy);
        font-size: 16px;
        font-weight: 800;
        box-shadow: 0 12px 30px rgba(25, 60, 110, 0.05);
        transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    }

        .ipx-login-input input:focus,
        .ipx-twofactor-code-input:focus {
            border-color: rgba(40, 104, 255, 0.66);
            box-shadow: 0 0 0 5px rgba(40, 104, 255, 0.09), 0 18px 42px rgba(25, 60, 110, 0.08);
            background: #fff;
        }

        .ipx-login-input input::placeholder {
            color: #9aa8be;
            font-weight: 700;
        }

/* Error */
.ipx-login-error {
    color: #e44141;
    font-size: 13px;
    font-weight: 800;
}

.ipx-login-message {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 6px 0 18px;
    padding: 13px 15px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 800;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.ipx-login-message--error {
    color: #c63131;
    background: rgba(255, 71, 87, 0.09);
    border: 1px solid rgba(255, 71, 87, 0.18);
}

.ipx-login-message.is-hiding {
    opacity: 0;
    transform: translateY(-5px);
}

/* Remember */
.ipx-login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 6px 0 24px;
}

.ipx-login-remember {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #536681;
    font-size: 14px;
    font-weight: 850;
    user-select: none;
}

    .ipx-login-remember input[type="checkbox"] {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

.ipx-login-check {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(146, 164, 194, 0.55);
    background: rgba(255, 255, 255, 0.84);
    color: #fff;
    transition: all 0.18s ease;
}

    .ipx-login-check i {
        font-size: 12px;
        opacity: 0;
    }

.ipx-login-remember input[type="checkbox"]:checked + .ipx-login-check {
    border-color: transparent;
    background: linear-gradient(135deg, var(--az-purple), var(--az-blue), var(--az-cyan));
    box-shadow: 0 10px 24px rgba(40, 104, 255, 0.24);
}

    .ipx-login-remember input[type="checkbox"]:checked + .ipx-login-check i {
        opacity: 1;
    }

/* Buttons */
.ipx-login-submit,
.ipx-twofactor-submit {
    width: 100%;
    height: 64px;
    border: 0;
    border-radius: 22px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #fff;
    font-size: 16px;
    font-weight: 950;
    letter-spacing: -0.01em;
    background: linear-gradient(135deg, var(--az-purple) 0%, var(--az-blue) 52%, var(--az-cyan) 100%);
    box-shadow: 0 20px 42px rgba(40, 104, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

    .ipx-login-submit:hover,
    .ipx-twofactor-submit:hover {
        transform: translateY(-2px);
        box-shadow: 0 26px 54px rgba(40, 104, 255, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.25);
        filter: saturate(1.08);
    }

/* Two factor */
.ipx-twofactor-card {
    width: 100%;
}

.ipx-twofactor-hero {
    text-align: center;
    margin-bottom: 24px;
}

.ipx-twofactor-shield {
    width: 74px;
    height: 74px;
    margin: 0 auto 18px;
    border-radius: 26px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--az-purple), var(--az-blue), var(--az-cyan));
    box-shadow: 0 20px 48px rgba(40, 104, 255, 0.27);
}

    .ipx-twofactor-shield i {
        font-size: 31px;
    }

.ipx-twofactor-hero h1 {
    margin: 0;
    color: var(--az-navy);
    font-size: 34px;
    line-height: 1.05;
    letter-spacing: -0.055em;
    font-weight: 950;
}

.ipx-twofactor-hero p {
    margin: 12px auto 0;
    max-width: 390px;
    color: #697994;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 650;
}

.ipx-twofactor-sent {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    padding: 16px;
    border-radius: 22px;
    background: rgba(239, 246, 255, 0.92);
    border: 1px solid rgba(185, 205, 234, 0.5);
}

.ipx-twofactor-sent__icon {
    width: 48px;
    height: 48px;
    border-radius: 17px;
    display: grid;
    place-items: center;
    color: var(--az-blue);
    background: #fff;
    box-shadow: 0 12px 28px rgba(35, 70, 130, 0.08);
}

.ipx-twofactor-sent__text span {
    display: block;
    color: #7a89a2;
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.ipx-twofactor-sent__text strong {
    display: block;
    margin-top: 4px;
    color: var(--az-navy);
    font-size: 14px;
    font-weight: 900;
    word-break: break-all;
}

.ipx-twofactor-field {
    position: relative;
    margin-bottom: 22px;
}

.ipx-twofactor-code-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ipx-twofactor-code-boxes {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

    .ipx-twofactor-code-boxes span {
        height: 62px;
        border-radius: 18px;
        display: grid;
        place-items: center;
        color: #a3b0c5;
        background: rgba(255, 255, 255, 0.92);
        border: 1px solid rgba(152, 171, 202, 0.34);
        font-size: 24px;
        font-weight: 950;
        box-shadow: 0 12px 28px rgba(30, 63, 120, 0.05);
        transition: all 0.16s ease;
    }

    .ipx-twofactor-code-boxes.is-focus span.is-active {
        border-color: rgba(40, 104, 255, 0.72);
        box-shadow: 0 0 0 5px rgba(40, 104, 255, 0.09);
    }

    .ipx-twofactor-code-boxes span.is-filled {
        color: var(--az-navy);
        border-color: rgba(40, 104, 255, 0.36);
        background: #fff;
    }

.ipx-twofactor-divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 13px;
    margin: 22px 0 16px;
    color: #9aa8be;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

    .ipx-twofactor-divider span {
        height: 1px;
        background: rgba(151, 171, 202, 0.32);
    }

    .ipx-twofactor-divider em {
        font-style: normal;
    }

.ipx-twofactor-resend,
.ipx-twofactor-back {
    width: 100%;
    min-height: 50px;
    border: 1px solid rgba(152, 171, 202, 0.34);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    color: #43536e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.18s ease;
}

    .ipx-twofactor-resend:hover,
    .ipx-twofactor-back:hover {
        border-color: rgba(40, 104, 255, 0.36);
        color: var(--az-blue);
        background: #fff;
        transform: translateY(-1px);
    }

    .ipx-twofactor-resend:disabled {
        opacity: 0.55;
        cursor: not-allowed;
        transform: none;
    }

.ipx-login-resend-message {
    margin-top: 12px;
    min-height: 20px;
    font-size: 13px;
    font-weight: 850;
    text-align: center;
}

    .ipx-login-resend-message.is-success {
        color: #159c61;
    }

    .ipx-login-resend-message.is-error {
        color: #d13d3d;
    }

    .ipx-login-resend-message.is-info {
        color: var(--az-blue);
    }

.ipx-twofactor-help {
    margin: 14px 0;
    color: #7a89a2;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
    font-weight: 650;
}

.ipx-twofactor-validation {
    margin-top: 14px;
    color: #d13d3d;
    font-size: 13px;
    font-weight: 800;
}

/* Responsive */
@media (max-width: 1180px) {
    .ipx-login-layout {
        grid-template-columns: 1fr;
    }

    .ipx-login-visual {
        min-height: auto;
        padding: 58px 54px;
    }

    .ipx-login-headline {
        max-width: 760px;
    }

    .azaac-visual-card {
        display: none;
    }

    .ipx-login-card-wrap {
        padding: 42px;
    }
}

@media (max-width: 720px) {
    .ipx-login-shell {
        padding: 14px;
        align-items: stretch;
    }

    .ipx-login-layout {
        min-height: calc(100vh - 28px);
        border-radius: 30px;
    }

    .ipx-login-visual {
        padding: 38px 28px;
    }

    .ipx-login-brand {
        margin-bottom: 34px;
    }

    .ipx-login-headline {
        font-size: 46px;
    }

    .ipx-login-description {
        font-size: 16px;
    }

    .ipx-login-card-wrap {
        padding: 20px;
    }

    .ipx-login-card {
        padding: 28px 22px;
        border-radius: 28px;
    }

    .ipx-login-card__top {
        gap: 14px;
    }

        .ipx-login-card__top h1 {
            font-size: 31px;
        }

    .ipx-login-card__icon {
        width: 52px;
        height: 52px;
        border-radius: 18px;
    }

    .ipx-twofactor-code-boxes {
        gap: 7px;
    }

        .ipx-twofactor-code-boxes span {
            height: 54px;
            border-radius: 15px;
            font-size: 20px;
        }
}

@media (max-width: 430px) {
    .ipx-login-visual {
        padding: 32px 22px;
    }

    .ipx-login-headline {
        font-size: 38px;
    }

    .ipx-login-specs {
        display: none;
    }

    .ipx-login-card {
        padding: 24px 18px;
    }

    .ipx-login-input input,
    .ipx-login-submit,
    .ipx-twofactor-submit {
        height: 58px;
    }
}
