/* /assets/css/gatekeeper.css */
body.bg-dark {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #ffffff;
    position: relative;
    min-height: 100vh;
    height: 100vh;
}

/* Animated background particles effect */
body.bg-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(2px 2px at 20px 30px, #00ffff, transparent),
                      radial-gradient(2px 2px at 40px 70px, #ff00ff, transparent),
                      radial-gradient(1px 1px at 90px 40px, #ffff00, transparent),
                      radial-gradient(1px 1px at 130px 80px, #00ff00, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: float 20s infinite linear;
    opacity: 0.1;
    z-index: 1;
}

@keyframes float {
    0% { transform: translate(0px, 0px) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
    100% { transform: translate(0px, 0px) rotate(360deg); }
}

/* Ensure Bootstrap utility classes work properly - override main.css conflicts */
main.min-vh-100.d-flex.align-items-center.justify-content-center {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
}

/* Ensure Bootstrap container is responsive and not constrained */
main .container {
    position: relative;
    display: block;
    z-index: 10;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--bs-gutter-x, 0.75rem);
    padding-right: var(--bs-gutter-x, 0.75rem);
}

/* Ensure Bootstrap row works responsively */
main .row.justify-content-center {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-left: calc(var(--bs-gutter-x, 1.5rem) * -0.5);
    margin-right: calc(var(--bs-gutter-x, 1.5rem) * -0.5);
}

/* Ensure Bootstrap columns work responsively */
main .col-lg-5,
main .col-md-7,
main .col-sm-9 {
    flex: 0 0 auto;
    padding-left: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
    padding-right: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
}

/* Futuristic card design */
.gatekeeper-card {
    max-width: 370px;
    width: 100%;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 24px;
    padding: 40px 35px;
    text-align: center;
    box-shadow: 
        0 0 40px rgba(0, 255, 255, 0.1),
        0 0 80px rgba(255, 0, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: fadeIn 0.6s ease-out;
}

.gatekeeper-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    transition: left 0.8s ease;
}

.gatekeeper-card:hover::before {
    left: 100%;
}

.gatekeeper-card:hover {
    border-color: rgba(0, 255, 255, 0.6);
    box-shadow: 
        0 0 60px rgba(0, 255, 255, 0.2),
        0 0 120px rgba(255, 0, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Simple fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Logo styling */
.gatekeeper-logo {
    margin-bottom: 25px;
    position: relative;
}

.gatekeeper-logo img {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.3));
    animation: pulse 3s infinite;
}

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

/* Typography */
.gatekeeper-card h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #00ffff, #ff00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
}

.gatekeeper-card p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    font-size: 1rem;
    font-weight: 400;
}

.update-notice {
    background: linear-gradient(135deg, #ffc107, #ff8c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    text-shadow: 0 0 20px rgba(255, 193, 7, 0.3);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { filter: brightness(1); }
    to { filter: brightness(1.2); }
}

/* Form styling */
.gatekeeper-form {
    margin-top: 30px;
}

.gatekeeper-form input {
    width: 100%;
    padding: 16px 20px;
    margin-bottom: 20px;
    background: rgba(51, 51, 51, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-sizing: border-box;
}

.gatekeeper-form input:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    background: rgba(51, 51, 51, 0.95);
}

.gatekeeper-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

.gatekeeper-form button {
    width: 100%;
    padding: 16px 20px;
    background: linear-gradient(135deg, #00ff88, #00ccff);
    border: none;
    border-radius: 12px;
    color: #000000;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.gatekeeper-form button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.gatekeeper-form button:hover::before {
    width: 300px;
    height: 300px;
}

.gatekeeper-form button:hover {
    background: linear-gradient(135deg, #00ff88, #00ffff);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
    transform: translateY(-2px);
}

.gatekeeper-form button:active {
    transform: translateY(0);
}

.gatekeeper-form button:disabled {
    background: rgba(85, 85, 85, 0.8);
    cursor: not-allowed;
    color: rgba(255, 255, 255, 0.5);
    box-shadow: none;
    transform: none;
}

.gatekeeper-form button:disabled::before {
    display: none;
}

/* Error and status messages */
.error-message {
    color: #ff4757;
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-weight: 500;
    animation: shake 0.5s ease-in-out;
}

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

.lockout-message {
    color: #ffc107;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 20px;
    font-weight: 500;
    animation: pulse 2s infinite;
}

/* Responsive design */
@media (max-width: 576px) {
    .gatekeeper-card {
        padding: 30px 25px;
        border-radius: 20px;
    }
    
    .gatekeeper-card h1 {
        font-size: 1.75rem;
    }
    
    .gatekeeper-logo img {
        width: 70px;
        height: 70px;
    }
}

/* Smooth loading transition */
body.bg-dark {
    animation: fadeInBody 0.6s ease-out;
}

@keyframes fadeInBody {
    from { opacity: 0; }
    to { opacity: 1; }
}