/* =========================
   GLOBAL
========================= */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #0f172a, #1e293b);
}

/* GARIS ANIMASI */
body::before {
    content: "";
    position: fixed;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        120deg,
        rgba(255,255,255,0.03) 0px,
        rgba(255,255,255,0.03) 5px,
        transparent 1px,
        transparent 40px
    );
    animation: garisJalan 20s linear infinite;
    z-index: 0;
}

@keyframes garisJalan {
    from {
        transform: translate(0, 0);
    }
    to {
        transform: translate(-200px, -200px);
    }
}

/* BIAR CONTENT DI ATAS BACKGROUND */
.container-login,
.container-hasil {
    position: relative;
    z-index: 1;
}

/* =========================
   LOGIN PAGE
========================= */
.container-login {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* CARD LOGIN */
.login-card {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(20px);
    padding: 50px 40px;
    width: 360px;
    text-align: center;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    animation: fadeIn 0.8s ease;
    transition: 0.3s;
}

.login-card:hover {
    transform: translateY(-5px);
}

/* LOGO */
.logo {
    width: 80px;
    margin-bottom: 20px;
}

/* TITLE */
.login-card h1 {
    font-size: 20px;
    margin: 0;
    font-weight: 600;
}

/* SUBTITLE */
.sub {
    font-size: 14px;
    color: #cbd5f5;
    margin-bottom: 25px;
}

/* FORM */
.form-group {
    width: 100%;
    margin-bottom: 15px;
}

.form-group input {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    font-size: 14px;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(56,189,248,0.5);
}

/* BUTTON */
.btn-login {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(56,189,248,0.4);
}

/* =========================
   HASIL PAGE
========================= */
.container-hasil {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding-top: 40px;
}

/* CARD HASIL */
.hasil-kartu {
    width: 700px;
    background: #ffffff;
    padding: 40px 60px;
    border: 1px solid #000;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    font-family: "Times New Roman", serif;
    border-radius: 6px;
}

/* =========================
   HEADER / KOP
========================= */
.kop {
    display: flex;
    align-items: center;
    border-bottom: 3px solid black;
    padding-bottom: 10px;
}

.kop img {
    width: 70px;
    margin-right: 15px;
}

.kop-text {
    text-align: center;
    width: 100%;
}

.kop-text h2 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}

.kop-text h3 {
    margin: 0;
    font-size: 16px;
}

.kop-text p {
    margin: 0;
    font-size: 14px;
}

/* =========================
   JUDUL
========================= */
.judul {
    text-align: center;
    margin: 25px 0;
    font-weight: bold;
    line-height: 1.5;
}

/* =========================
   DATA + FOTO
========================= */
.data-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.data {
    line-height: 1.8;
    font-size: 16px;
}

/* FOTO */
.foto-box img {
    width: 120px;
    height: 150px;
    object-fit: cover;
    border: 2px solid #000;
}

/* =========================
   STATUS
========================= */
.status-lulus {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: green;
    margin: 25px 0;
}

.status-tidak {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: red;
    margin: 25px 0;
}

/* =========================
   QR CENTER
========================= */
.qr-center {
    text-align: center;
    margin-top: 30px;
}

.qr-center img {
    width: 130px;
    border: 1px solid #000;
    padding: 6px;
    background: #fff;
}

.qr-center p {
    font-size: 12px;
    margin-top: 5px;
}

/* =========================
   KONTAK
========================= */
.kontak {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 12px;
}

/* =========================
   FOOTER
========================= */
.footer {
    text-align: right;
    margin-top: 40px;
    line-height: 1.5;
}

.footer .jabatan {
    margin-top: 10px;
}

.footer .ttd {
    height: 50px;
}

.footer .nama {
    margin-top: 5px;
    font-weight: bold;
}

.footer .nip {
    margin-top: 2px;
}

/* =========================
   ANIMATION
========================= */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* =========================
   RESPONSIVE MOBILE
========================= */
@media (max-width: 768px) {

    /* CARD HASIL */
    .hasil-kartu {
        width: 95%;
        padding: 20px;
    }

    /* KOP */
    .kop {
        flex-direction: column;
        text-align: center;
    }

    .kop img {
        margin: 0 0 10px 0;
    }

    /* DATA + FOTO */
    .data-flex {
        flex-direction: column;
        align-items: center;
    }

    .data {
        text-align: center;
    }

    .foto-box {
        margin-top: 15px;
    }

    /* STATUS */
    .status-lulus,
    .status-tidak {
        font-size: 18px;
    }

    /* QR */
    .qr-center img {
        width: 110px;
    }

    /* FOOTER */
    .footer {
        text-align: center;
    }
}
@media (max-width: 480px) {
    .login-card {
        width: 90%;
        padding: 30px 20px;
    }
}