* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #2d2d2d 100%);
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.container {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    position: relative;
}

.password-form {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 15px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.password-form:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.header {
    margin-bottom: 15px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.header-logo {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    flex-shrink: 0;
    order: 2;
}

.header-text {
    text-align: left;
    flex: 1;
    order: 1;
}

.header h1 {
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Courier New', 'Monaco', 'Consolas', 'Lucida Console', monospace;
    color: #ffffff;
    margin-bottom: 5px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.subtitle {
    color: #cccccc;
    font-size: 0.8rem;
    font-weight: 400;
}

.input-group {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

#passwordInput {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.9rem;
    color: #ffffff;
    transition: all 0.3s ease;
    outline: none;
}

#passwordInput:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
    background: rgba(255, 255, 255, 0.15);
}

#passwordInput::placeholder {
    color: #999999;
}

#submitBtn {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

#submitBtn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

#submitBtn:active {
    transform: translateY(0);
}

.attempts-info {
    text-align: center;
    margin-bottom: 10px;
    color: #cccccc;
    font-size: 0.8rem;
}

.message {
    text-align: center;
    padding: 8px;
    border-radius: 6px;
    font-weight: 500;
    min-height: 16px;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.message.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
}

/* Portal Styles */
.portal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle, transparent 0%, #000000 80%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: portalOpen 2s ease-out;
}

.portal-content {
    text-align: center;
    animation: portalText 3s ease-in-out;
}

.portal-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 30px;
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.6);
    animation: logoGlow 2s ease-in-out infinite alternate;
}

.portal-text {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    animation: glow 2s ease-in-out infinite alternate;
}

.portal-text-secondary {
    font-size: 1.5rem;
    color: #cccccc;
    font-style: italic;
}

/* Lockout Screen */
.lockout-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.5s ease-out;
}

.lockout-content {
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 40px;
    max-width: 400px;
}

.lockout-content h2 {
    color: #ef4444;
    font-size: 2rem;
    margin-bottom: 20px;
}

.lockout-content p {
    color: #cccccc;
    margin-bottom: 30px;
    line-height: 1.6;
}

#playAgainBtn {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#playAgainBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

/* Animations */
@keyframes portalOpen {
    0% {
        opacity: 0;
        transform: scale(0.1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes portalText {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    50% {
        opacity: 0.5;
        transform: translateY(25px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
    }
    to {
        text-shadow: 0 0 20px rgba(139, 92, 246, 0.8), 0 0 30px rgba(139, 92, 246, 0.6);
    }
}

@keyframes logoGlow {
    from {
        box-shadow: 0 0 30px rgba(102, 126, 234, 0.6);
        transform: scale(1);
    }
    to {
        box-shadow: 0 0 50px rgba(102, 126, 234, 0.9), 0 0 70px rgba(102, 126, 234, 0.4);
        transform: scale(1.05);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

/* Responsive Design */
@media (max-width: 600px) {
    .container {
        padding: 10px;
    }
    
    .password-form {
        padding: 30px 20px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .portal-text {
        font-size: 2rem;
    }
    
    .portal-text-secondary {
        font-size: 1.2rem;
    }
} 