/* =========================
   BODY
========================= */
body {
    min-height: 100vh;
    background: radial-gradient(circle at top, #0b1220, #020617);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-family:
        system-ui,
        -apple-system,
        sans-serif;
}

/* =========================
   GLOW EFFECT
========================= */
.glow {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(140px);
    z-index: 0;
}

.glow.blue {
    background: rgba(59, 130, 246, 0.25);
    top: -120px;
    left: -120px;
}

.glow.purple {
    background: rgba(168, 85, 247, 0.25);
    bottom: -120px;
    right: -120px;
}

/* =========================
   CARD
========================= */
.card-login {
    width: 100%;
    max-width: 420px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.15);
    backdrop-filter: blur(30px);
    border-radius: 18px;
    padding: 32px;
    z-index: 2;
}

/* =========================
   LABEL
========================= */
.form-label {
    font-size: 13px;
    color: rgba(226, 232, 240, 0.85);
    margin-bottom: 6px;
}

/* =========================
   INPUT BASE (FIX WHITE)
========================= */
.form-control {
    height: 50px;
    border-radius: 12px;

    /* IMPORTANT: pakai solid, bukan rgba */
    background-color: #0f172a !important;

    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #fff !important;

    padding-left: 44px;
    transition: 0.2s;
}

/* focus */
.form-control:focus {
    background-color: #0f172a !important;
    border-color: rgba(96, 165, 250, 0.9);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18);
    color: #fff !important;
}

/* placeholder */
.form-control::placeholder {
    color: rgba(148, 163, 184, 0.85);
}

/* =========================
   🔥 AUTOFILL FIX TOTAL (INI KUNCI UTAMA)
========================= */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-text-fill-color: #fff !important;
    caret-color: #fff !important;

    -webkit-box-shadow: 0 0 0px 1000px #0f172a inset !important;
    box-shadow: 0 0 0px 1000px #0f172a inset !important;

    transition: background-color 999999s ease-in-out 0s;
}

/* =========================
   BOOTSTRAP INVALID FIX
========================= */
.form-control.is-invalid {
    background-color: #0f172a !important;
    color: #fff !important;
    border-color: #ef4444 !important;
}

/* =========================
   ICON
========================= */
.icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(148, 163, 184, 0.8);
}

.toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: rgba(148, 163, 184, 0.8);
}

/* =========================
   BUTTON
========================= */
.btn-login {
    height: 50px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    background: linear-gradient(135deg, #3b82f6, #9333ea);
    transition: 0.2s;
}

.btn-login:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

/* =========================
   MUTED TEXT
========================= */
.muted {
    color: rgba(148, 163, 184, 0.85);
    font-size: 14px;
}

/* =========================
   LOGO
========================= */
.logo-silappa {
    width: 80px;
    height: auto;
    object-fit: contain;
    margin-bottom: 12px;
}
