* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body::before {
    content: "";
    position: fixed;
    top: -20%;
    left: -20%;

    width: 70vw;
    height: 70vh;

    background: radial-gradient(circle at 30% 30%, rgba(29,78,216,0.35), transparent 60%),
                radial-gradient(circle at 70% 70%, rgba(16,185,129,0.25), transparent 55%),
                radial-gradient(circle at 50% 50%, rgba(139,92,246,0.20), transparent 60%);

    filter: blur(80px);
    opacity: 0.7;

    animation: auroraMove1 18s ease-in-out infinite alternate;
    z-index: 0;
}

/* =========================
   AURORA LAYER 2
========================= */
body::after {
    content: "";
    position: fixed;
    bottom: -25%;
    right: -20%;

    width: 75vw;
    height: 75vh;

    background: radial-gradient(circle at 40% 40%, rgba(59,130,246,0.30), transparent 60%),
                radial-gradient(circle at 60% 60%, rgba(236,72,153,0.18), transparent 55%),
                radial-gradient(circle at 30% 70%, rgba(34,211,238,0.20), transparent 60%);

    filter: blur(90px);
    opacity: 0.65;

    animation: auroraMove2 22s ease-in-out infinite alternate;
    z-index: 0;
}
.login-section,
.login-left,
.login-right {
    position: relative;
    z-index: 1;
}
/* =========================
   ANIMATION MOVEMENT
========================= */
@keyframes auroraMove1 {
    0% {
        transform: translate(0px, 0px) scale(1);
    }
    100% {
        transform: translate(60px, 40px) scale(1.1);
    }
}

@keyframes auroraMove2 {
    0% {
        transform: translate(0px, 0px) scale(1);
    }
    100% {
        transform: translate(-50px, -30px) scale(1.15);
    }
}
/* =========================
   BODY
========================= */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8fafc;
    min-height: 100vh;
}

/* =========================
   MAIN GRID LAYOUT
========================= */
.login-section {
    display: grid;
    grid-template-columns: 60% 40%;
    min-height: 100vh;
    overflow: hidden;
}

/* =========================
   LEFT SIDE (HERO)
========================= */
.login-left {
    position: relative;
    padding: 60px;
    display: flex;
    justify-content: flex-start;
    overflow: hidden;
}

/* HERO CONTENT */
.login-hero {
    position: relative;
    z-index: 3; /* penting: di atas ilustrasi */
    max-width: 620px;
}

/* =========================
   BADGE
========================= */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(14px);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #1d4ed8;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    margin-bottom: 18px;
}

.hero-badge i {
    color: #facc15;
    font-size: 14px;
}
.hero-stats {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 16px 22px;
    border-radius: 14px;

    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(14px);

    box-shadow: 0 8px 20px rgba(0,0,0,0.08);

    z-index: 4;
    min-width: 320px;
}

/* ITEM (NO CARD STYLE) */
.stat {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ICON SIMPLE */
.stat i {
    font-size: 16px;
    color: #1d4ed8;
}

/* NUMBER */
.stat-number {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.2;
}

/* LABEL */
.stat-label {
    font-size: 12px;
    color: #64748b;
    line-height: 1;
}
/* =========================
   TITLE
========================= */
.hero-title {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.15;
    color: #0f172a;
    margin-bottom: 12px;
}

.hero-title span {
    background: linear-gradient(90deg, #1d4ed8, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* =========================
   SUBTITLE
========================= */
.hero-subtitle {
    font-family: "Inter", "Segoe UI", sans-serif;
    font-size: 13px;         /* diperkecil */
    font-weight: 400;        /* lebih ringan */
    color: #64748b;
    line-height: 1.6;
    max-width: 380px;
    letter-spacing: 0.1px;
}

/* =========================
   OVERLAY ILLUSTRATION (FIXED)
========================= */
.login-overlay-illustration {
    position: absolute;
    right: -150px;
    bottom: 110px;

    width: 650px;
    max-width: none;

    z-index: 1; /* HARUS di bawah hero tapi tetap terlihat */
    pointer-events: none;
}

.login-overlay-illustration img {
    width: 75%;
    height: auto;

}
.hero-system-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 12px;
    max-width: 240px;
}

/* =========================
   SYSTEM CARD BASE (COMPACT)
========================= */
.system-card {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 8px 10px;
    border-radius: 10px;

    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(12px);

    box-shadow: 0 6px 16px rgba(0,0,0,0.06);

    transition: all 0.2s ease;
    cursor: default;
}

.system-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.10);
}

/* =========================
   ICON BOX (SMALL)
========================= */
.system-icon {
    width: 26px;
    height: 26px;
    border-radius: 8px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #fff;
    font-size: 12px;
    flex-shrink: 0;
}

/* =========================
   TEXT (SMALL TYPO)
========================= */
.system-text h4 {
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 1px;
    color: #0f172a;
}

.system-text span {
    font-size: 10px;
    color: #64748b;
    line-height: 1.2;
}

/* =========================
   COLOR VARIANTS
========================= */
.system-card.blue .system-icon {
    background: linear-gradient(135deg, #1d4ed8, #60a5fa);
}

.system-card.green .system-icon {
    background: linear-gradient(135deg, #10b981, #34d399);
}

.system-card.purple .system-icon {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
}

.system-card.orange .system-icon {
    background: linear-gradient(135deg, #f97316, #fb923c);
}
/* =========================
   RIGHT SIDE (LOGIN CARD)
========================= */
.login-right {
    display: flex;
    padding: 10px;
    position: relative;
    z-index: 5;
}


/* FLOAT EFFECT */
@keyframes floatHero {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}
.ios-input-group.is-invalid {
    border: 1px solid red;
    border-radius: 8px; /* menyesuaikan style input */
}

/* Login Card */
.login-card-ios {
    position: relative;
    overflow-y: auto; /* scroll jika konten terlalu tinggi */

    box-sizing: border-box;
    border-radius: 28px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(14px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    width: 100%;
    max-width: 400px;
    padding: 100px 30px 50px 30px;
    text-align: center;
    transition: transform 0.3s;
    margin-top: 20px; /* jarak aman dari navbar */
}

.login-card-ios:hover {
    transform: translateY(-3px);
}


/* Logo */
.card-logo {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.logo-img {
    width: 80px;
    height: auto;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Greeting modern */
.greeting {
    margin-top: 40px; /* sedikit lebih rapat dari logo */
    font-size: 18px;
    font-weight: 500;
    color: #1a4fc0; /* lebih tegas tapi lembut */
    letter-spacing: 0.5px;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1); /* efek floating */
    transition: color 0.3s;
}

/* Greeting hover optional (interaktif) */
.greeting:hover {
    color: #0a2e6d;
}

/* Judul Login */
.login-card-ios h3 {
    font-size: 26px;
    margin: 15px 0 25px 0;
    font-weight: 600;
    color: #333333;
}



/* Input */
.login-card-ios .form-control {
    padding: 14px 20px;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.15);
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(6px);
    font-size: 16px;
    transition: 0.3s;
}

.login-card-ios .form-control:focus {
    outline: none;
    border: 1.5px solid #4A90E2;
    background: rgba(255,255,255,0.8);
}
/* Form tanpa gap default */
.login-card-ios form {
    display: flex;
    flex-direction: column;
    gap: 0; /* hapus gap 18px */
}

/* Label rata kiri */
.login-card-ios label {
    display: block;
    text-align: left;
    font-size: 14px;
    font-weight: 500;
    color: #555555;
}

/* Container input iOS */
.ios-input-group {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 50px;
    padding: 0 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: all 0.2s ease-in-out;
}

/* Efek fokus */
.ios-input-group:focus-within {
    box-shadow: 0 0 0 3px rgba(52,199,89,0.25);
}

/* Ikon */
.ios-input-icon {
    color: #2c2c2f;
    font-size: 1.1rem;
    margin-right: 8px;
    display: flex;
    align-items: center;
}

/* Input */
.ios-input {
    border: none;
    outline: none;
    flex: 1;
    padding: 12px 0;
    font-size: 1rem;
    background: transparent;
    color: #333;
}

/* Placeholder */
.ios-input::placeholder {
    color: #b0b0b0;
}

/* Tombol login tetap modern */
.btn-login-submit {
    width: 100%;
    padding: 14px;
    border-radius: 25px;
    border: none;
    background: linear-gradient(90deg, #0f4fb5, #0a2e6d);
    color: white;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
/* Button */
.login-card-ios .btn-login-submit {
    padding: 14px;
    border-radius: 20px;
    border: none;
    background: linear-gradient(90deg, #0f4fb5, #0a2e6d);
    color: white;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.login-card-ios .btn-login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Footer */
.login-card-ios .login-footer-text {
    font-size: 14px;
    color: #555555;
    margin-top: 18px;
}

.login-card-ios .login-footer-text a {
    color: #4A90E2;
    font-weight: 600;
    text-decoration: none;
}

.login-card-ios .login-footer-text a:hover {
    text-decoration: underline;
}
/* Container label checkbox */
.ios-checkbox-label {
    display: grid;
    grid-template-columns: 24px auto; /* kolom 1: kotak, kolom 2: teks */
    align-items: center;             /* vertikal sejajar */
    gap: 8px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    user-select: none;
}

/* Sembunyikan checkbox default */
.ios-checkbox-label input[type="checkbox"] {
    display: none;
}

/* Kotak custom */
.ios-checkbox-custom {
    width: 20px;
    height: 20px;
    border: 1.5px solid #ccc;
    border-radius: 6px; /* rounded ala iOS */
    background-color: #fff;
    position: relative;
    display: inline-block;
    transition: all 0.2s;
}

/* Centang */
.ios-checkbox-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 10px;
    border: solid #4A90E2;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -50%) rotate(45deg) scale(0); /* center sempurna */
    transition: all 0.2s;
}

/* Checked */
.ios-checkbox-label input[type="checkbox"]:checked + .ios-checkbox-custom::after {
    transform: translate(-50%, -50%) rotate(45deg) scale(1);
}
/* Footer container */
.login-footer {
    display: flex;
    justify-content: flex-end; /* kanan */
    margin-top: 18px;
    font-size: 14px;
}

/* Lupa Password link ala iOS */
.footer-forgot {
    color: #4A90E2;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-forgot:hover {
    color: #0a2e6d; /* hover halus ala iOS */
    text-decoration: underline;
}
/* Wave */
.wave-top,
.wave-bottom {
    position: absolute;
    left: 0;
    width: 100%;
    height: 50px;
    overflow: hidden;
    z-index: 0;
}

.wave-top {
    top: 0;
}

.wave-bottom {
    bottom: 0;
}

.wave-top svg,
.wave-bottom svg {
    width: 100%;
    height: 100%;
    display: block;
}


/* =========================
   LOGIN CARD
========================= */
.login-card-ios {
    width: 100%;
    max-width: 640px;

    min-width: 460px;

    padding: 40px 36px;
    border-radius: 28px;

    /* ===== GLASS EFFECT ===== */
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);

    border: 1px solid rgba(255, 255, 255, 0.25);

    /* shadow depth iOS */
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);

    position: relative;
    overflow: hidden;
}
.login-card-ios::before {
    content: "";
    position: absolute;
    inset: 0;

    background-image: url("https://www.transparenttextures.com/patterns/noise.png");
    opacity: 0.04;

    pointer-events: none;
}
/* =========================
   LOGO SMALL CIRCLE
========================= */
.card-logo-circle {
    width: 82px;
    height: 82px;

    border-radius: 50%;
    background: white;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 12px auto;

    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.logo-img-small {
    width: 55px;
    height: 55px;
    object-fit: contain;
}

/* =========================
   INFO BOX IOS
========================= */
.ios-info-box {
    margin-top: 16px;
    padding: 10px 12px;

    border-radius: 12px;
    background: rgba(59,130,246,0.08);

    font-size: 12px;
    color: #334155;
    line-height: 1.4;
}

/* =========================
   FOOTER COPYRIGHT
========================= */
.login-footer-bottom {
    margin-top: 14px;
    text-align: center;
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.4;
}
.login-hero-text {
    text-align: center;
    margin: 12px 0 18px 0;
}

/* TITLE */
.login-hero-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
}

.login-hero-title i {
    color: #f59e0b;
    font-size: 14px;
}

/* SUBTITLE */
.login-hero-subtitle {
    margin-top: 4px;
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}
/* Responsif */
@media (max-width: 450px) {
    .login-card-ios {
        padding: 80px 20px 40px 20px;
    }
    .logo-img {
        width: 60px;
    }
}
/* ===========================
   Responsif
=========================== */
@media (max-width: 900px) {
    .login-card-ios {
        padding: 100px 20px 100px 20px;
        max-width: 90%;
    }
}
/* Responsif untuk layar kecil */
@media (max-width: 900px) {
    .login-section {
        flex-direction: column;
        gap: 30px;
    }

    .login-flayer,
    .login-card-ios {
        max-width: 90%;
    }
}
