@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Press Start 2P', monospace;
    background: #0a0a1a;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

canvas#bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
}

.box {
    position: relative;
    z-index: 10;
    background: rgba(10, 10, 30, 0.90);
    padding: 40px 36px 32px;
    width: 340px;
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.pixel-border-top {
    width: 100%;
    height: 4px;
    margin-bottom: 20px;
}

.box-title {
    color: #ffe566;
    font-size: 14px;
    text-align: center;
    margin-bottom: 6px;
    text-shadow: 3px 3px #b8860b;
    letter-spacing: 1px;
}

.box-subtitle {
    font-size: 7px;
    text-align: center;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

label {
    display: block;
    font-size: 7px;
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.hint {
    font-size: 6px;
    color: #556;
    margin-top: -12px;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
}

input {
    display: block;
    width: 100%;
    background: #0a0a1a;
    color: #fff;
    font-family: 'Press Start 2P', monospace;
    font-size: 9px;
    padding: 10px 8px;
    margin-bottom: 6px;
    outline: none;
    border: 2px solid currentColor;
    transition: border-color 0.1s;
}

input:focus {
    border-color: #ffe566 !important;
    box-shadow: 0 0 8px rgba(255,229,102,0.2);
}

.btn {
    display: block;
    width: 100%;
    color: #0a0a1a;
    border: none;
    font-family: 'Press Start 2P', monospace;
    font-size: 9px;
    padding: 12px;
    cursor: pointer;
    letter-spacing: 1px;
    transition: background 0.1s, transform 0.1s;
    margin-top: 10px;
    margin-bottom: 14px;
}

.btn:hover { background: #ffe566; }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.message {
    font-size: 7px;
    line-height: 1.8;
    padding: 10px 8px;
    margin-bottom: 12px;
    display: none;
    letter-spacing: 0.5px;
}

.message.success { color: #4f8; border: 2px solid #4f8; background: rgba(68,255,136,0.08); }
.message.error   { color: #f64; border: 2px solid #f64; background: rgba(255,102,68,0.08); }

.footer-link {
    text-align: center;
    color: #556;
    font-size: 6px;
    letter-spacing: 0.5px;
}

.footer-link a { text-decoration: none; }
.footer-link a:hover { color: #ffe566; }
