* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* Background Carousel */
.bg-carousel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.bg-slide.active {
    opacity: 1;
}

/* Overlay gelap untuk meningkatkan kontras */
.bg-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    max-width: 450px;
    width: 100%;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header {
    background: linear-gradient(135deg, #1a365d 0%, #2d5f8d 100%);
    padding: 30px 30px;
    text-align: center;
    color: white;
}

.logo {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.logo img {
    width: 55px;
    height: auto;
}

.header h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.header p {
    font-size: 14px;
    opacity: 0.9;
}

.form-container {
    padding: 20px 30px;
}

.welcome-text {
    text-align: center;
    margin-bottom: 30px;
}

.welcome-text h2 {
    color: #333;
    font-size: 22px;
    margin-bottom: 8px;
}

.welcome-text p {
    color: #666;
    font-size: 14px;
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #d4a574;
    background: white;
    box-shadow: 0 0 0 4px rgba(212, 165, 116, 0.15);
}

/* Password Toggle */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.toggle-password {
    position: absolute;
    right: 15px;
    cursor: pointer;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    transition: color 0.3s;
    z-index: 10;
}

.toggle-password:hover {
    color: #d4a574;
}

.toggle-password svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

input[type="password"],
input[type="text"].password-shown {
    padding-right: 45px !important;
}

/* Turnstile Container */
.turnstile-container {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.btn-login {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #d4a574 0%, #b8860b 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
}

.btn-login:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(212, 165, 116, 0.5);
    background: linear-gradient(135deg, #c9a961 0%, #a67c00 100%);
}

.btn-login:active:not(:disabled) {
    transform: translateY(0);
}

.btn-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.info-box {
    background: #f5f1e8;
    border-left: 4px solid #d4a574;
    padding: 15px;
    border-radius: 8px;
    margin-top: 25px;
}

.info-box p {
    color: #555;
    font-size: 13px;
    line-height: 1.6;
}

.footer {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    color: #666;
    font-size: 12px;
}

@media (max-width: 480px) {
    .container {
        border-radius: 15px;
    }

    .header {
        padding: 30px 20px;
    }

    .form-container {
        padding: 25px 20px;
    }

    .header h1 {
        font-size: 20px;
    }

    .welcome-text h2 {
        font-size: 20px;
    }
}