/* =============================================================
   NXTG LOGIN - Split-panel formal (biru–putih)
   Struktur form & id (#login--form, #login--email, #login--password,
   #toggleIcon) dipertahankan agar JS/API login tetap berfungsi.
   ============================================================= */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
    --nx-blue: #1e7bff;
    --nx-blue-dark: #0b5cdb;
    --nx-blue-soft: #eaf2ff;
    --nx-ink: #0b1220;
    --nx-slate: #5a6b87;
    --nx-line: #e5eaf2;
    --nx-grad-deep: linear-gradient(150deg, #0a3f97 0%, #0b1220 100%);
    --nx-grad: linear-gradient(135deg, #1e7bff 0%, #0b5cdb 100%);
}

* { box-sizing: border-box; padding: 0; margin: 0; }

body, input, button {
    font-family: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 1rem;
}
img { display: block; max-width: 100%; height: auto; }

/* ===================== LAYOUT ===================== */
.login {
    position: relative;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    background: #fff;
}

/* ===================== BACK TO HOME ===================== */
.login__back {
    position: absolute;
    top: 26px;
    left: 28px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px 9px 12px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: .9rem;
    font-weight: 500;
    text-decoration: none;
    backdrop-filter: blur(6px);
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.login__back:hover {
    background: rgba(255, 255, 255, .16);
    border-color: rgba(255, 255, 255, .55);
    transform: translateX(-2px);
    color: #fff;
}
.login__back i { font-size: 1.05rem; }

/* ===================== BRAND (kiri) ===================== */
.login__brand {
    position: relative;
    overflow: hidden;
    background: var(--nx-grad-deep);
    color: #fff;
    display: flex;
    align-items: center;
    padding: 60px;
}
.login__brand-bg { position: absolute; inset: 0; z-index: 0; }
.login__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .5;
}
.login__orb--1 {
    width: 420px; height: 420px; background: #1e7bff;
    top: -100px; left: -80px;
    animation: login-float 16s ease-in-out infinite;
}
.login__orb--2 {
    width: 340px; height: 340px; background: #2ea6ff;
    bottom: -110px; right: -70px;
    animation: login-float 20s ease-in-out infinite reverse;
}
@keyframes login-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -40px) scale(1.1); }
}

.login__brand-content { position: relative; z-index: 1; max-width: 440px; }
.login__brand-logo { height: 48px; width: auto; margin-bottom: 40px; }
.login__brand-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.6px;
    margin-bottom: 16px;
}
.login__brand-sub {
    font-size: 1.02rem;
    color: rgba(255, 255, 255, .82);
    line-height: 1.7;
    margin-bottom: 40px;
}
.login__brand-foot {
    font-size: .9rem;
    letter-spacing: .5px;
    color: rgba(255, 255, 255, .6);
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .15);
}

/* ===================== FORM (kanan) ===================== */
.login__panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.login__form { width: 100%; max-width: 400px; }
.login__form-logo { height: 40px; width: auto; margin-bottom: 34px; }

.login__title {
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -.5px;
    color: var(--nx-ink);
    margin-bottom: 6px;
}
.login__subtitle {
    color: var(--nx-slate);
    font-size: .98rem;
    margin-bottom: 32px;
}

.login__inputs { display: grid; row-gap: 18px; margin-bottom: 26px; }

.login__box {
    position: relative;
    display: flex;
    align-items: center;
    border: 1.5px solid var(--nx-line);
    border-radius: 12px;
    background: #fbfcfe;
    padding: 0 16px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.login__box:focus-within {
    border-color: var(--nx-blue);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(30, 123, 255, .12);
}
.login__box-lead { color: var(--nx-slate); font-size: 1.2rem; }
.login__box-toggle {
    color: var(--nx-slate);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color .2s ease;
}
.login__box-toggle:hover { color: var(--nx-blue); }

.login__input {
    flex: 1;
    width: 100%;
    border: none;
    outline: none;
    background: transparent !important;
    color: var(--nx-ink);
    padding: 15px 12px;
    font-size: .98rem;
}
.login__input::placeholder { color: #9aa7bd; }

input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #fbfcfe inset !important;
    -webkit-text-fill-color: var(--nx-ink) !important;
    transition: background-color 5000s ease-in-out 0s;
}

.login__button {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px;
    border: none;
    outline: none;
    background: var(--nx-grad);
    border-radius: 12px;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(30, 123, 255, .28);
    transition: transform .2s ease, box-shadow .2s ease;
}
.login__button:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(30, 123, 255, .38); }
.login__button i { font-size: 1.15rem; }

.login__note {
    text-align: center;
    color: #9aa7bd;
    font-size: .82rem;
    margin-top: 28px;
}

.text-danger { color: #e03e5c; font-size: .8rem; margin-top: 4px; display: block; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
    .login { grid-template-columns: 1fr; }
    .login__brand { display: none; }
    .login__panel { padding: 72px 24px 32px; min-height: 100vh; }

    .login__back {
        color: var(--nx-ink);
        background: #fff;
        border-color: var(--nx-line);
        backdrop-filter: none;
    }
    .login__back:hover { background: var(--nx-blue-soft); border-color: var(--nx-blue); color: var(--nx-blue-dark); }
}
