body {
    background: linear-gradient(135deg, #0a3d32 0%, #0d4d3f 50%, #1a7a5e 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin: 0;
}

.main-wrapper {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-card {
    border: none;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), 0 8px 20px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    width: 90%;
    max-width: 420px;
    margin: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: cardFadeIn 0.8s ease-out;
}

.main-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25), 0 10px 25px rgba(0, 0, 0, 0.15);
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-body {
    padding: 40px 35px;
}

.logo-img {
    max-width: 120px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

h1 {
    font-weight: 700;
    color: #0d4d3f;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.text-muted {
    color: #6b7280;
    font-size: 1rem;
}

.form-label {
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.form-control {
    border-radius: 14px;
    padding: 16px 20px;
    border: 2px solid #e5e7eb;
    font-size: 1rem;
    height: 55px;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.form-control:focus {
    border-color: #0d4d3f;
    box-shadow: 0 0 0 4px rgba(13, 77, 63, 0.1);
    background: white;
}

.btn-success {
    background: linear-gradient(135deg, #0d4d3f 0%, #1a7a5e 100%);
    border: none;
    border-radius: 14px;
    padding: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(13, 77, 63, 0.25);
    height: 56px;
    font-size: 1rem;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(13, 77, 63, 0.35);
    background: linear-gradient(135deg, #1a7a5e 0%, #2d9a6e 100%);
}

.btn-success:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(13, 77, 63, 0.2);
}

.footer-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-top: 35px;
    letter-spacing: 0.5px;
}

.result-card {
    border-radius: 15px;
    padding: 2rem;
    margin-top: 1.5rem;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-lulus {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: 2px solid #0d4d3f;
    color: #0d4d3f;
    animation: successPulse 0.6s ease-in-out;
}

@keyframes successPulse {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

.result-tidak {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border: 2px solid #e65100;
    color: #e65100;
    animation: gentleShake 0.6s ease-in-out;
}

@keyframes gentleShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.result-icon {
    font-size: 4rem;
    display: block;
    text-align: center;
    margin-bottom: 1rem;
    animation: iconBounce 1s ease-in-out infinite;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.result-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
}

.result-name {
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
}

.result-message {
    text-align: center;
    font-size: 1rem;
    line-height: 1.6;
}

.alert-custom {
    border-radius: 16px;
    animation: fadeIn 0.5s ease-in;
    border-left: 4px solid #0d4d3f;
}

.quote-container {
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    border-left: 4px solid #0d4d3f;
    animation: fadeIn 0.8s ease-in 0.5s both;
}

.quote-text {
    font-style: italic;
    font-size: 1rem;
    color: #495057;
    text-align: center;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.quote-author {
    text-align: center;
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 600;
}

.countdown-container {
    text-align: center;
    padding: 2rem;
    margin-top: 1.5rem;
    position: relative;
}

.countdown-number {
    font-size: 10rem;
    font-weight: 900;
    color: #0d4d3f;
    line-height: 1;
    animation: countdownPop 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    text-shadow: 0 10px 40px rgba(13, 77, 63, 0.4), 0 0 80px rgba(13, 77, 63, 0.2);
    position: relative;
    z-index: 2;
}

@keyframes countdownPop {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    30% {
        transform: scale(1.4) rotate(15deg);
    }
    50% {
        transform: scale(0.9) rotate(-5deg);
    }
    70% {
        transform: scale(1.1) rotate(3deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.countdown-label {
    font-size: 1.4rem;
    color: #6c757d;
    font-weight: 700;
    margin-top: 1.5rem;
    animation: fadeIn 0.5s ease-out, textShake 0.3s ease-in-out infinite;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes textShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

.countdown-ring {
    width: 250px;
    height: 250px;
    border: 10px solid #e8f5e9;
    border-top: 10px solid #0d4d3f;
    border-radius: 50%;
    margin: 0 auto 2rem;
    animation: countdownSpin 0.8s linear infinite;
    box-shadow: 0 0 30px rgba(13, 77, 63, 0.2), inset 0 0 30px rgba(13, 77, 63, 0.1);
    position: relative;
}

.countdown-ring::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 6px solid rgba(13, 77, 63, 0.2);
    border-top: 6px solid rgba(13, 77, 63, 0.6);
    border-radius: 50%;
    animation: countdownSpin 1.2s linear infinite reverse;
}

.countdown-ring::after {
    content: '';
    position: absolute;
    top: 30px;
    left: 30px;
    right: 30px;
    bottom: 30px;
    border: 4px solid rgba(13, 77, 63, 0.15);
    border-top: 4px solid rgba(13, 77, 63, 0.5);
    border-radius: 50%;
    animation: countdownSpin 1.5s linear infinite;
}

@keyframes countdownSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.countdown-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.countdown-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #0d4d3f;
    border-radius: 50%;
    animation: particleBurst 1s ease-out infinite;
}

@keyframes particleBurst {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(0);
        opacity: 0;
    }
}

@keyframes screenShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Responsive */
@media (max-width: 576px) {
    body {
        padding: 15px;
    }
    
    .main-wrapper {
        width: 100%;
    }
    
    .main-card {
        width: 95%;
        max-width: 420px;
    }
    
    .card-body {
        padding: 35px 25px;
    }
    
    .logo-img {
        max-width: 100px;
    }
    
    h1 {
        font-size: 1.6rem;
    }
    
    .text-muted {
        font-size: 0.95rem;
    }
    
    .form-label {
        font-size: 0.9rem;
    }
    
    .form-control {
        font-size: 1rem;
        padding: 14px 16px;
        height: 50px;
    }
    
    .btn-success {
        font-size: 0.95rem;
        padding: 14px;
        height: 52px;
    }
    
    .result-card {
        padding: 1.5rem 1rem;
        margin-top: 1rem;
    }
    
    .result-icon {
        font-size: 3.5rem;
        margin-bottom: 0.75rem;
    }
    
    .result-title {
        font-size: 1.6rem;
        margin-bottom: 0.5rem;
    }
    
    .result-name {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    .result-message {
        font-size: 1rem;
    }
    
    .countdown-container {
        padding: 1rem;
    }
    
    .countdown-number {
        font-size: 5rem;
    }
    
    .countdown-ring {
        width: 150px;
        height: 150px;
        border-width: 8px;
    }
    
    .countdown-label {
        font-size: 1rem;
    }
    
    .quote-container {
        padding: 1rem;
        margin-top: 1rem;
    }
    
    .quote-text {
        font-size: 0.95rem;
    }
    
    .quote-author {
        font-size: 0.85rem;
    }
    
    .footer-text {
        font-size: 0.8rem;
        margin-top: 30px;
    }
}

@media (max-width: 400px) {
    .card-body {
        padding: 30px 20px;
    }
    
    .logo-img {
        max-width: 90px;
    }
    
    h1 {
        font-size: 1.4rem;
    }
    
    .form-control {
        font-size: 0.95rem;
        padding: 12px 14px;
        height: 48px;
    }
    
    .btn-success {
        font-size: 0.9rem;
        padding: 12px;
        height: 48px;
    }
    
    .countdown-number {
        font-size: 4rem;
    }
    
    .countdown-ring {
        width: 130px;
        height: 130px;
    }
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0d4d3f 0%, #1a7a5e 50%, #2d9a6e 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    overflow: hidden;
}

.loading-screen::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 2px, transparent 2px);
    background-size: 40px 40px;
    animation: moveBackground 15s linear infinite;
}

.loading-screen::after {
    content: '';
    position: absolute;
    width: 300%;
    height: 300%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes moveBackground {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-50%, -50%); }
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-logo {
    width: 150px;
    height: auto;
    margin-bottom: 2rem;
    border-radius: 12px;
    animation: logoFloat 3s ease-in-out infinite;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 30px rgba(255,255,255,0.3), 0 0 60px rgba(255,255,255,0.2);
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
    25% { transform: translateY(-20px) rotate(3deg) scale(1.05); }
    50% { transform: translateY(0) rotate(0deg) scale(1); }
    75% { transform: translateY(20px) rotate(-3deg) scale(1.05); }
}

.loading-spinner {
    width: 100px;
    height: 100px;
    border: 5px solid rgba(255, 255, 255, 0.15);
    border-top: 5px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.loading-spinner::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 4px solid rgba(255, 255, 255, 0.25);
    border-top: 4px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    animation: spin 1.5s linear infinite reverse;
}

.loading-spinner::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 3px solid rgba(255, 255, 255, 0.35);
    border-top: 3px solid rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: white;
    font-size: 1.6rem;
    margin-top: 2.5rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
    animation: textGlow 2s ease-in-out infinite;
    text-transform: uppercase;
    letter-spacing: 2px;
}

@keyframes textGlow {
    0%, 100% { text-shadow: 0 0 10px rgba(255,255,255,0.5), 0 0 20px rgba(255,255,255,0.3); }
    50% { text-shadow: 0 0 20px rgba(255,255,255,0.8), 0 0 40px rgba(255,255,255,0.6), 0 0 60px rgba(255,255,255,0.4); }
}

.loading-subtext {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-top: 0.8rem;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out, textPulse 2s ease-in-out infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 0.9;
        transform: translateY(0);
    }
}

@keyframes textPulse {
    0%, 100% { opacity: 0.9; }
    50% { opacity: 0.6; }
}

/* Confetti */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background-color: #0d4d3f;
    animation: confetti-fall 3s linear forwards;
    z-index: 1000;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateY(0vh) rotate(360deg) scale(1.2);
        opacity: 0.8;
    }
    100% {
        transform: translateY(100vh) rotate(720deg) scale(0.8);
        opacity: 0;
    }
}

/* Floating particles for not passed */
.floating-particle {
    position: fixed;
    width: 8px;
    height: 8px;
    background-color: #e65100;
    border-radius: 50%;
    animation: floatUp 4s ease-in-out forwards;
    z-index: 1000;
    opacity: 0.6;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    20% {
        opacity: 0.6;
    }
    80% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(-100vh) scale(1);
        opacity: 0;
    }
}

