/* front-page.css - Front Page specific styles */
.hero-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(0, 240, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    pointer-events: none;
}

.cyber-card {
    position: relative;
    overflow: hidden;
}

.card-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
    z-index: 0;
    opacity: 0.6;
}

.cyber-card:hover .card-bg-layer {
    transform: scale(1.1);
    opacity: 0.8;
}

.card-overlay {
    z-index: 1;
    background: linear-gradient(to top, #000 10%, transparent 100%);
}

.card-content {
    z-index: 2;
    position: relative;
}

.neural-gate-section {
    position: relative;
    padding: 120px 20px;
    background: #050505;
    overflow: hidden;
    text-align: center;
    border-top: 1px solid #333;
}

.cyber-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    perspective: 500px;
    z-index: 0;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan, #00F0FF), transparent);
    opacity: 0.5;
    animation: scanAnimation 4s linear infinite;
    z-index: 1;
}

@keyframes scanAnimation {
    0% {
        top: 0%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

.gate-container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    background: rgba(10, 10, 15, 0.8);
    border: 1px solid rgba(0, 240, 255, 0.2);
    padding: 60px 40px;
    backdrop-filter: blur(10px);
    clip-path: polygon(20px 0, 100% 0,
            100% calc(100% - 20px), calc(100% - 20px) 100%,
            0 100%, 0 20px);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
}

.gate-hud-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem;
    color: #555;
}

.hud-text .blink {
    color: var(--neon-green, #00FF94);
    animation: blink 1s infinite;
}

.hud-line {
    flex-grow: 1;
    height: 1px;
    background: #333;
    margin: 0 15px;
}

.gate-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    color: #fff;
    margin-bottom: 20px;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.gate-text {
    color: #ccc;
    font-size: 1.1rem;
    margin-bottom: 40px;
    line-height: 1.6;
}

.gate-text .highlight {
    color: var(--neon-cyan, #00F0FF);
}

.user-welcome {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 20px;
    border-radius: 30px;
    display: inline-flex;
}

.avatar-ring img {
    border-radius: 50%;
    width: 30px;
    height: 30px;
    border: 2px solid var(--neon-green, #00FF94);
}

.welcome-text {
    font-family: 'Share Tech Mono';
    color: var(--neon-green, #00FF94);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.cyber-btn-glitch-action {
    position: relative;
    display: inline-block;
    padding: 20px 50px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: none;
    color: #000;
    background: var(--neon-cyan, #00F0FF);
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
    transition: 0.3s;
    font-size: 1.2rem;
}

.cyber-btn-glitch-action.register-mode {
    background: var(--neon-purple, #BC13FE);
    color: #fff;
}

.cyber-btn-glitch-action:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px var(--neon-cyan, #00F0FF);
    letter-spacing: 2px;
}

.cyber-btn-glitch-action.register-mode:hover {
    box-shadow: 0 0 30px var(--neon-purple, #BC13FE);
}

.login-hint {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #666;
}

.login-hint a {
    color: var(--neon-cyan, #00F0FF);
    text-decoration: none;
}

.gate-hud-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20px;
    pointer-events: none;
}

.hud-corner {
    position: absolute;
    bottom: 0;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid var(--neon-cyan, #00F0FF);
}

.hud-corner.left {
    left: 0;
    border-left: 2px solid var(--neon-cyan, #00F0FF);
}

.hud-corner.right {
    right: 0;
    border-right: 2px solid var(--neon-cyan, #00F0FF);
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .gate-container {
        padding: 40px 20px;
        width: 90%;
    }

    .gate-title {
        font-size: 2rem;
    }

    .cyber-btn-glitch-action {
        width: 100%;
        padding: 15px;
        font-size: 1rem;
    }
}