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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    padding: 0;
    margin: 0;
    color: #333;
    transition: background 0.5s ease;
    display: flex;
    flex-direction: column;
}

body.red-background {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 50%, #bd2130 100%);
}

.top-header {
    background: #004080;
    color: white;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    width: 100%;
}

.top-header-content {
    max-width: 1200px;
    margin: 0 auto;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: flex-start;
}

.logo-img {
    max-width: 80px;
    height: auto;
    display: block;
    flex-shrink: 0;
}

.header-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.top-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: white;
}

.top-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 400;
    color: white;
    margin: 0;
}

.container {
    width: 100%;
    max-width: 600px;
    margin: 10px auto 30px;
    padding: 0 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

main {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    text-align: center;
    color: #333;
    margin-bottom: 40px;
    width: 100%;
}

header h1 {
    font-size: 2.8rem;
    color: #004080;
    margin-bottom: 10px;
    animation: pulse 2s ease-in-out infinite;
}

.subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    font-weight: 500;
    color: #666;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.card {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 100%;
}

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

.input-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.input-group input {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

body.red-background .input-group input:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.btn-primary {
    width: 100%;
    padding: 18px;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.6);
    background: linear-gradient(135deg, #34ce57 0%, #28a745 100%);
}

body.red-background .btn-primary {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
}

body.red-background .btn-primary:hover {
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.6);
    background: linear-gradient(135deg, #e04d5c 0%, #dc3545 100%);
}

.btn-primary:active {
    transform: translateY(0);
}

.result {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    font-weight: 500;
    animation: slideIn 0.3s ease;
    text-align: center;
}

.result.hidden {
    display: none;
}

.result.valid {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.result.invalid {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.result.error {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.result.blocked {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #dc3545;
    font-size: 1.05rem;
    padding: 20px;
    animation: shake 0.5s ease-in-out;
}

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

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

.unlock-button-container {
    margin-top: 25px;
    animation: slideIn 0.5s ease 0.3s both;
}

.unlock-button-container.hidden {
    display: none;
}

.btn-unlock {
    width: 100%;
    padding: 20px;
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.5);
    animation: pulseButton 2s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.btn-unlock::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-unlock:hover::before {
    width: 300px;
    height: 300px;
}

.btn-unlock:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.7);
    background: linear-gradient(135deg, #34ce57 0%, #28a745 100%);
}

.btn-unlock:active {
    transform: translateY(-1px) scale(1);
}

@keyframes pulseButton {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(40, 167, 69, 0.5);
    }
    50% {
        box-shadow: 0 6px 30px rgba(40, 167, 69, 0.8);
    }
}

/* Banner Image */
.banner-image {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Carousel Styles */
.carousel-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 10px;
    padding: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 300%;
}

.carousel-slide {
    width: 33.333%;
    flex-shrink: 0;
    position: relative;
}

.slide-content {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 30px 20px 20px;
}

.slide-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.slide-overlay p {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.5;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 64, 128, 0.8);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.carousel-btn:hover {
    background: rgba(0, 64, 128, 1);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn-prev {
    left: 15px;
}

.carousel-btn-next {
    right: 15px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #004080;
    transform: scale(1.2);
}



@media (max-width: 600px) {
    .top-header {
        padding: 15px;
    }
    
    .header-left {
        gap: 15px;
    }
    
    .logo-img {
        max-width: 60px;
    }
    
    .top-title {
        font-size: 1.5rem;
    }
    
    .top-subtitle {
        font-size: 0.9rem;
    }
    
    .container {
        margin: 15px auto;
        padding: 0 15px;
        max-width: 100%;
    }
    
    .banner-image {
        max-width: 100%;
        margin-bottom: 20px;
        border-radius: 8px;
    }
    
    .carousel-container {
        max-width: 100%;
        padding: 10px;
    }
    
    header {
        margin-bottom: 25px;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .card {
        padding: 25px 20px;
    }
    
    .input-group input {
        padding: 12px;
        font-size: 1rem;
    }
    
    .btn-primary {
        padding: 14px;
        font-size: 1rem;
    }
    
    .carousel-container {
        padding: 10px;
        max-width: 100%;
    }
    
    .slide-content {
        height: 200px;
    }
    
    .slide-overlay {
        padding: 20px 15px 15px;
    }
    
    .slide-overlay h3 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .slide-overlay p {
        font-size: 0.85rem;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1.3rem;
    }
    
    .carousel-btn-prev {
        left: 8px;
    }
    
    .carousel-btn-next {
        right: 8px;
    }
    
    .carousel-indicators {
        gap: 8px;
        margin-top: 10px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
    
    .result {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    .btn-unlock {
        padding: 15px;
        font-size: 1.1rem;
    }
}
