:root {
    --bg: #07111f;
    --card: rgba(7, 18, 34, .82);
    --card-solid: #0a1728;
    --line: rgba(125, 211, 252, .30);
    --line-strong: rgba(34, 211, 238, .75);
    --text: #edf7ff;
    --muted: rgba(226, 232, 240, .74);
    --cyan: #22d3ee;
    --blue: #0ea5e9;
    --gold: #facc15;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }

body.login-page {
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

.page-bg {
    position: fixed;
    inset: 0;
    background-image: url('/img/cyber-paminal-login-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.page-dim {
    position: fixed;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(3, 10, 20, .72) 0%, rgba(3, 10, 20, .26) 42%, rgba(3, 10, 20, .82) 100%),
        radial-gradient(circle at 76% 18%, rgba(34, 211, 238, .18), transparent 28%),
        linear-gradient(to bottom, rgba(2, 6, 14, .10), rgba(2, 6, 14, .62));
    pointer-events: none;
}

.login-shell {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 460px;
    gap: 56px;
    align-items: center;
    padding: 46px clamp(22px, 5vw, 78px);
}

.hero-copy {
    max-width: 680px;
    padding-left: clamp(0px, 3vw, 32px);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border: 1px solid rgba(34, 211, 238, .38);
    border-radius: 999px;
    background: rgba(7, 18, 34, .42);
    color: #c9fbff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.2px;
    backdrop-filter: blur(8px);
}

.hero-copy h1 {
    margin: 22px 0 14px;
    font-size: clamp(46px, 6vw, 82px);
    line-height: .95;
    letter-spacing: 3px;
    font-weight: 900;
    color: #f8fbff;
    text-shadow: 0 12px 42px rgba(0, 0, 0, .42), 0 0 28px rgba(34, 211, 238, .18);
}

.hero-copy p {
    max-width: 560px;
    margin: 0;
    font-size: 18px;
    line-height: 1.7;
    color: rgba(241, 245, 249, .82);
    text-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}

.hero-line {
    width: 128px;
    height: 4px;
    margin-top: 28px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--cyan), transparent);
}

.login-card {
    position: relative;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 32px 34px 28px;
    background:
        linear-gradient(180deg, rgba(10, 23, 40, .90), rgba(5, 13, 26, .82));
    box-shadow:
        0 28px 90px rgba(0, 0, 0, .48),
        0 0 0 1px rgba(255, 255, 255, .04) inset,
        0 0 42px rgba(14, 165, 233, .12);
    backdrop-filter: blur(16px);
    overflow: hidden;
}

.card-topline {
    position: absolute;
    left: 30px;
    right: 30px;
    top: 0;
    height: 3px;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}

.logo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.logo-paminal {
    width: 106px;
    height: auto;
    display: block;
    filter: drop-shadow(0 0 18px rgba(250, 204, 21, .18));
}

.login-heading {
    text-align: center;
    margin-bottom: 24px;
}

.eyebrow {
    color: var(--cyan);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 2.2px;
}

.login-heading h2 {
    margin: 8px 0 8px;
    color: #ffffff;
    font-size: 28px;
    line-height: 1.15;
    letter-spacing: .7px;
    font-weight: 900;
}

.login-heading p {
    margin: 0 auto;
    max-width: 330px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.alert-error {
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid rgba(248, 113, 113, .45);
    border-radius: 14px;
    background: rgba(127, 29, 29, .28);
    color: #fecaca;
    font-size: 14px;
}

.login-form { margin: 0; }
.field-group { margin-bottom: 17px; }

.field-group label {
    display: block;
    margin-bottom: 9px;
    color: #eaf6ff;
    font-size: 14px;
    font-weight: 800;
}

.field-control {
    position: relative;
}

.field-control input {
    width: 100%;
    height: 54px;
    padding: 0 52px;
    border: 1px solid rgba(148, 163, 184, .34);
    border-radius: 15px;
    outline: none;
    background: rgba(2, 8, 23, .56);
    color: #f8fbff;
    font-size: 15px;
    transition: .18s ease;
}

.field-control input::placeholder {
    color: rgba(203, 213, 225, .58);
}

.field-control input:focus {
    border-color: var(--line-strong);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, .11);
    background: rgba(2, 8, 23, .72);
}

.field-icon {
    position: absolute;
    left: 17px;
    top: 50%;
    transform: translateY(-50%);
    opacity: .9;
}

.btn-eye {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 10px;
    background: rgba(148, 163, 184, .10);
    color: #e2e8f0;
    cursor: pointer;
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 4px 0 20px;
    color: var(--muted);
    font-size: 13px;
}

.remember-box {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
}

.remember-box input {
    width: 17px;
    height: 17px;
    accent-color: var(--cyan);
}

.security-note {
    color: rgba(34, 211, 238, .82);
    font-weight: 700;
}

.btn-login {
    width: 100%;
    height: 56px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #22d3ee, #0ea5e9 58%, #2563eb);
    color: #03111f;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 18px 32px rgba(14, 165, 233, .25);
    transition: .18s ease;
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 38px rgba(14, 165, 233, .32);
    filter: brightness(1.08);
}

.card-footer-note {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(148, 163, 184, .14);
    color: rgba(226, 232, 240, .75);
    font-size: 12px;
    text-align: center;
}

.shield {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(34, 211, 238, .34);
    border-radius: 10px;
    background: rgba(34, 211, 238, .08);
}

@media (max-width: 1040px) {
    .login-shell {
        grid-template-columns: 1fr;
        gap: 28px;
        justify-items: center;
        padding: 34px 18px;
    }

    .hero-copy {
        text-align: center;
        padding-left: 0;
    }

    .hero-copy p,
    .hero-line {
        display: none;
    }

    .hero-copy h1 {
        margin-bottom: 0;
        font-size: clamp(36px, 9vw, 62px);
    }
}

@media (max-width: 560px) {
    .login-card {
        padding: 26px 20px 22px;
        border-radius: 22px;
    }

    .logo-paminal { width: 88px; }
    .login-heading h2 { font-size: 23px; }
    .field-control input { height: 52px; }
    .hero-badge { font-size: 11px; }
}

/* === FIX UKURAN FONT PORTAL LOGIN LEBIH PROPORSIONAL === */
.welcome-title span {
    font-size: clamp(18px, 2.2vw, 28px) !important;
    letter-spacing: 2.5px !important;
}

.welcome-title strong {
    font-size: clamp(25px, 3.8vw, 44px) !important;
    letter-spacing: 1.2px !important;
}

.welcome-subtitle {
    font-size: 15px !important;
    margin-top: 10px !important;
    margin-bottom: 18px !important;
}

.login-box {
    padding: 26px 30px !important;
}

.form-group label {
    font-size: 14px !important;
}

.input-wrap input {
    height: 50px !important;
    font-size: 14px !important;
}

.btn-login {
    height: 52px !important;
    font-size: 17px !important;
}

.security-text {
    font-size: 12px !important;
}

.login-footer {
    font-size: 12px !important;
}

@media (max-width: 768px) {
    .welcome-title span {
        font-size: 18px !important;
        letter-spacing: 1.5px !important;
    }

    .welcome-title strong {
        font-size: 28px !important;
        letter-spacing: .5px !important;
    }

    .welcome-subtitle {
        font-size: 14px !important;
    }

    .login-box {
        padding: 22px 18px !important;
    }
}

/* ===== REFINEMENT JUDUL LOGIN ===== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800;900&display=swap');

.welcome-title {
    max-width: 520px !important;
    margin: 0 auto 10px auto !important;
    text-align: left !important;
    line-height: 1.04 !important;
    text-transform: uppercase !important;
    text-wrap: balance;
}

.welcome-title span {
    font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif !important;
    font-size: clamp(15px, 1.4vw, 21px) !important;
    font-weight: 700 !important;
    letter-spacing: 2.5px !important;
    color: #d9f5ff !important;
    display: block !important;
    margin-bottom: 6px !important;
    text-shadow: 0 2px 10px rgba(0,0,0,.28) !important;
}

.welcome-title strong {
    font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif !important;
    font-size: clamp(28px, 3.1vw, 48px) !important;
    font-weight: 900 !important;
    letter-spacing: 1px !important;
    color: #ffffff !important;
    display: block !important;
    line-height: 1.02 !important;
    text-shadow: 0 4px 18px rgba(0,0,0,.34) !important;
}

.welcome-subtitle {
    max-width: 480px !important;
    margin: 10px auto 22px auto !important;
    text-align: left !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    color: rgba(255,255,255,.88) !important;
    font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif !important;
}

@media (max-width: 768px) {
    .welcome-title {
        max-width: 100% !important;
        text-align: center !important;
    }

    .welcome-title span {
        font-size: 14px !important;
        letter-spacing: 1.8px !important;
    }

    .welcome-title strong {
        font-size: 26px !important;
        letter-spacing: .5px !important;
    }

    .welcome-subtitle {
        text-align: center !important;
        font-size: 14px !important;
    }
}
