@font-face {
    font-family: "Reddit Sans";
    src: url("../fonts/RedditSans.ttf") format("truetype");
}

body {
    font-family: 'Reddit Sans', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    overflow-y: auto;
    margin: 0;
}

.circles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.circles li {
    position: absolute;
    display: block;
    list-style: none;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    animation: animate 25s linear infinite;
    bottom: -150px;
}

.circles li:nth-child(1) {
    left: 25%;
    width: 80px;
    height: 80px;
    animation-delay: 0s;
}

.circles li:nth-child(2) {
    left: 10%;
    width: 20px;
    height: 20px;
    animation-delay: 2s;
    animation-duration: 12s;
}

.circles li:nth-child(3) {
    left: 70%;
    width: 20px;
    height: 20px;
    animation-delay: 4s;
}

.circles li:nth-child(4) {
    left: 40%;
    width: 60px;
    height: 60px;
    animation-delay: 0s;
    animation-duration: 18s;
}

.circles li:nth-child(5) {
    left: 65%;
    width: 20px;
    height: 20px;
    animation-delay: 0s;
}

.circles li:nth-child(6) {
    left: 75%;
    width: 110px;
    height: 110px;
    animation-delay: 3s;
}

.circles li:nth-child(7) {
    left: 35%;
    width: 150px;
    height: 150px;
    animation-delay: 7s;
}

.circles li:nth-child(8) {
    left: 50%;
    width: 25px;
    height: 25px;
    animation-delay: 15s;
    animation-duration: 45s;
}

.circles li:nth-child(9) {
    left: 20%;
    width: 15px;
    height: 15px;
    animation-delay: 2s;
    animation-duration: 35s;
}

.circles li:nth-child(10) {
    left: 85%;
    width: 150px;
    height: 150px;
    animation-delay: 0s;
    animation-duration: 11s;
}

@keyframes animate {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
        border-radius: 0;
    }

    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
        border-radius: 50%;
    }
}

.card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: none;
    overflow: hidden;
    transform: translateY(0);
    transition: transform 0.3s ease;
    width: 100%;
}

.card:hover {
    transform: translateY(-5px);
}

.card-header {
    background: transparent;
    border-bottom: none;
    padding-top: 30px;
    text-align: center;
}

.card-header h3 {
    color: #333;
    font-weight: 700;
}

.card-header p {
    color: #666;
    margin-bottom: 0;
}

.form-control {
    border-radius: 10px;
    padding: 12px 15px;
    background: #f7f9fc;
    border: 2px solid #E9E9E9;
    transition: all 0.3s;
}

.form-control:focus {
    background: #fff;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}


.form-control.error {
    border-color: #fe8686;
}

.form-control.error:focus {
    box-shadow: 0 0 0 0.2rem rgba(253, 7, 7, 0.1);
    border-color: #fe8686;
}

.form-control+label.error {
    position: relative;
    display: block;
    margin: 8px 0 0 5px;
    font-size: 13px;
    color: #c32c27;
    letter-spacing: 0;
    text-transform: none;
    text-align: left;
    display: block;
    transform: none !important;
}

.btn-check-result {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-weight: 600;
    letter-spacing: .5px;
    color: white;
    transition: all 0.3s;
    width: 100%;
}

.btn-check-result:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(118, 75, 162, 0.4);
}

.result-box {
    display: none;
    margin-top: 20px;
    text-align: center;
    padding: 20px;
    border-radius: 15px;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.result-box.lulus {
    background: linear-gradient(135deg, #d4fc79 0%, #96e6a1 100%);
    color: #155724;
}

.result-box.menunggu {
    background: linear-gradient(135deg, #fffbc1 0%, #ffe29f 50%, #ffcc70 100%);
    color: #8a6d1f;
}

.result-box.gagal {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
    color: #721c24;
}

.btn.btn-light-primary {
    color: #5c96fc !important;
    background-color: #ddeaff !important;
    border-color: transparent;
}

.btn.btn-light-primary:hover,
.btn.btn-light-primary:focus {
    color: #fff !important;
    background-color: #5c96fc !important;
}

.btn.btn-light-primary:focus {
    box-shadow: 0 0 0 .2rem #5c96fc50;
}

@keyframes popIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 576px) {
    body {
        display: block;
        height: auto;
        padding: 20px 0;
        align-items: flex-start;
        justify-content: flex-start;
    }
}