@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier Prime', monospace;
    background: #0a0a0a;
    color: #00ff00;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Matrix rain effect */
.matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.1;
}

.rain-column {
    position: absolute;
    top: -100%;
    font-size: 20px;
    line-height: 20px;
    animation: rain 20s linear infinite;
}

@keyframes rain {
    to { transform: translateY(200vh); }
}

.container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 20px;
}

.login-box {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #00ff00;
    padding: 40px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

h1 {
    font-size: 3em;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    text-shadow: 0 0 10px #00ff00;
}

.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-1 0.5s infinite linear alternate-reverse;
    color: #ff0000;
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 0.5s infinite linear alternate-reverse;
    color: #0000ff;
    z-index: -1;
}

.rules {
    margin-bottom: 30px;
    text-align: center;
}

.rule {
    margin: 10px 0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.input-group {
    margin-bottom: 20px;
}

input {
    width: 100%;
    padding: 12px;
    background: #000;
    border: 1px solid #00ff00;
    color: #00ff00;
    font-family: inherit;
    font-size: 16px;
}

input:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

button {
    width: 100%;
    padding: 12px;
    background: #000;
    border: 2px solid #00ff00;
    color: #00ff00;
    font-family: inherit;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s;
}

button:hover {
    background: #00ff00;
    color: #000;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

.error {
    margin-top: 20px;
    padding: 10px;
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid #ff0000;
    color: #ff0000;
    text-align: center;
    display: none;
}

.success {
    margin-top: 20px;
    padding: 10px;
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid #00ff00;
    color: #00ff00;
    text-align: center;
    display: none;
}

@keyframes glitch-1 {
    0%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
    20% { clip-path: inset(33% 0 60% 0); transform: translate(2px, -2px); }
    40% { clip-path: inset(10% 0 85% 0); transform: translate(-2px, 2px); }
    60% { clip-path: inset(65% 0 20% 0); transform: translate(2px, 2px); }
    80% { clip-path: inset(45% 0 40% 0); transform: translate(-2px, -2px); }
}

@keyframes glitch-2 {
    0%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
    20% { clip-path: inset(60% 0 33% 0); transform: translate(-2px, 2px); }
    40% { clip-path: inset(85% 0 10% 0); transform: translate(2px, -2px); }
    60% { clip-path: inset(20% 0 65% 0); transform: translate(-2px, -2px); }
    80% { clip-path: inset(40% 0 45% 0); transform: translate(2px, 2px); }
}

.soap {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 24px;
    opacity: 0.3;
    cursor: pointer;
    transition: opacity 0.3s;
    z-index: 100;
    color: #00ff00;
}

.soap:hover {
    opacity: 1;
}

@media (max-width: 600px) {
    h1 { font-size: 2em; }
    .login-box { padding: 30px 20px; }
}