@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&display=swap');

body {
    background-color: #050505;
    color: #e0e0e0;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    overflow: hidden;
}

/* Effetto scansiona-linee TV */
body::before {
    content: " ";
    display: block;
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 2;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

.card {
    background: #0a0a0a;
    border: 1px solid #333;
    padding: 40px;
    width: 320px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 10;
    border-radius: 8px;
}

h1, h2 {
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 30px;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

input {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    background: #000;
    border: 1px solid #333;
    color: #fff;
    font-family: inherit;
    text-align: center;
    font-size: 1rem;
    outline: none;
    box-sizing: border-box;
    transition: 0.3s;
    border-radius: 4px;
}

input:focus {
    border-color: #ff3333;
    box-shadow: 0 0 10px rgba(255, 51, 51, 0.2);
}

button {
    width: 100%;
    padding: 15px;
    background: #fff;
    border: none;
    font-family: inherit;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
    letter-spacing: 2px;
    border-radius: 4px;
}

button:hover {
    background: #ff3333;
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 51, 51, 0.5);
}

.alert-box {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(139, 0, 0, 0.9);
    border: 1px solid #ff3333;
    color: #fff;
    padding: 15px 30px;
    border-radius: 4px;
    z-index: 100;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from { top: -50px; opacity: 0; }
    to { top: 20px; opacity: 1; }
}

