:root {
    --ink: #14233a;
    --muted: #738096;
    --brand: #4169e1;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    color: var(--ink);
    background: #f7f9fd;
    font-family: Inter, "Segoe UI", system-ui, sans-serif;
}

.login-page {
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(460px, 1.03fr) minmax(500px, .97fr);
}

.login-showcase {
    position: relative;
    overflow: hidden;
    padding: 42px 7%;
    flex-direction: column;
    color: #fff;
    background:
        radial-gradient(circle at 20% 20%, rgba(99, 135, 255, .46), transparent 29%),
        radial-gradient(circle at 85% 75%, rgba(61, 206, 184, .22), transparent 28%),
        linear-gradient(145deg, #122540, #16345d 57%, #1b4272);
}

.login-showcase::after {
    position: absolute;
    inset: 0;
    content: "";
    opacity: .12;
    background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(to bottom right, #000, transparent 75%);
}

.login-brand,
.mobile-brand {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 11px;
    letter-spacing: .1em;
    text-decoration: none;
}

.login-brand span,
.mobile-brand span {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #6486ff, #3d63d8);
    border-radius: 13px;
    box-shadow: 0 10px 25px rgba(20, 45, 104, .35);
}

.login-brand span img,
.mobile-brand span img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: inherit;
}

.showcase-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    margin: auto 0;
}

.showcase-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    padding: 8px 13px;
    color: #cbd8ff;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 99px;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.showcase-content h1 {
    max-width: 680px;
    margin-bottom: 20px;
    font-size: clamp(2.4rem, 5vw, 4.6rem);
    font-weight: 750;
    letter-spacing: -.05em;
    line-height: 1.05;
}

.showcase-content p {
    max-width: 570px;
    color: #b7c8dc;
    font-size: 1rem;
    line-height: 1.8;
}

.showcase-points {
    display: flex;
    flex-wrap: wrap;
    gap: 17px;
    margin-top: 36px;
}

.showcase-points span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #d4deeb;
    font-size: .78rem;
}

.showcase-points i { color: #79a0ff; }

.showcase-orbit {
    position: absolute;
    z-index: 1;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 50%;
}

.orbit-one { right: -190px; bottom: -190px; width: 520px; height: 520px; }
.orbit-two { right: -100px; bottom: -100px; width: 340px; height: 340px; }

.login-form-panel {
    display: grid;
    padding: 45px clamp(30px, 7vw, 100px);
    place-items: center;
    background: #fff;
}

.login-card { width: min(100%, 440px); }

.mobile-brand {
    margin-bottom: 35px;
    color: var(--ink);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 46px;
    color: #7c899c;
    font-size: .78rem;
    text-decoration: none;
}

.back-link:hover { color: var(--brand); }

.login-heading > span {
    color: var(--brand);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.login-heading h2 {
    margin: 7px 0 8px;
    font-size: clamp(1.8rem, 3vw, 2.25rem);
    font-weight: 750;
    letter-spacing: -.035em;
}

.login-heading p {
    margin-bottom: 30px;
    color: var(--muted);
    font-size: .87rem;
}

.login-form .form-label {
    color: #38475c;
    font-size: .77rem;
    font-weight: 650;
}

.secure-label {
    color: #8090a5;
    font-size: .68rem;
}

.input-group {
    overflow: hidden;
    border: 1px solid #dfe5ee;
    border-radius: 11px;
    transition: border-color .2s, box-shadow .2s;
}

.input-group:focus-within {
    border-color: #7895ed;
    box-shadow: 0 0 0 4px rgba(65,105,225,.09);
}

.input-group-text,
.login-form .form-control,
.password-toggle {
    min-height: 50px;
    background: #fbfcfe;
    border: 0;
}

.input-group-text { padding-left: 16px; color: #93a0b1; }
.login-form .form-control { font-size: .84rem; box-shadow: none; }
.password-toggle { color: #8390a1; }

.btn-login {
    display: flex;
    min-height: 51px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 25px;
    color: #fff;
    background: linear-gradient(135deg, #4d73e9, #3156c9);
    border: 0;
    border-radius: 11px;
    box-shadow: 0 11px 25px rgba(49,86,201,.24);
    font-size: .85rem;
    font-weight: 650;
}

.btn-login:hover { color: #fff; background: linear-gradient(135deg, #3d63d8, #2448b8); }

.login-security {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    padding: 13px;
    color: #8390a2;
    background: #f7f9fc;
    border-radius: 10px;
    font-size: .69rem;
    line-height: 1.55;
}

.login-security i { color: #4f75e6; font-size: 1.1rem; }
.alert { border: 0; border-radius: 10px; font-size: .78rem; }

.prestasi-swal {
    border-radius: 18px !important;
    font-family: Inter, "Segoe UI", system-ui, sans-serif;
}

@media (max-width: 991.98px) {
    .login-page { display: block; }
    .login-form-panel { min-height: 100vh; padding: 35px 22px; }
    .back-link { margin-bottom: 30px; }
}
