:root {
    --primary-color: #FFCD01;
    --error-color: #FF1488;
    --ghost-color: #00F0FF;
    --background-color: #1a1a1a;
    --text-color: #ffffff;
    --shadow-color: #ff6b81;
    --border-color: #4a4a4a;
}

body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Press Start 2P', cursive;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('https://then.ro/images/bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.container {
    padding: 2em;
    border: 4px solid var(--border-color);
    background-color: rgba(0, 0, 0, 0.8);
    box-shadow: 0 0 25px rgba(0,0,0,0.6);
    max-width: 90%;
    width: 450px;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-shadow: 
        0 0 5px var(--primary-color),
        0 0 15px var(--shadow-color),
        3px 3px 0px #000;
    margin-bottom: 0;
    margin-top: 0;
    animation: pulse 2s infinite;
}

.subtitle {
    font-size: 0.8rem;
    color: var(--text-color);
    margin-top: 1em;
    margin-bottom: 2.5em;
    letter-spacing: 1px;
    line-height: 1.5;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1.5em;
    text-align: left;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

label {
    font-size: 0.7rem;
    color: var(--ghost-color);
}

input {
    width: 100%;
    padding: 12px;
    background-color: #000;
    border: 2px solid var(--border-color);
    color: var(--text-color);
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    box-sizing: border-box;
}

input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 10px rgba(255, 205, 1, 0.5);
}

.btn {
    margin-top: 1em;
    padding: 1em;
    background-color: var(--primary-color);
    color: #000;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    border: 3px solid #000;
    box-shadow: 4px 4px 0px #000;
    cursor: pointer;
    transition: all 0.1s ease-in-out;
    width: 100%;
}

.btn:hover:not(:disabled) {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #000;
    background-color: #fff;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.error-message {
    color: var(--error-color);
    font-size: 0.7rem;
    text-align: center;
    background-color: rgba(255, 20, 136, 0.1);
    border: 2px solid var(--error-color);
    padding: 10px;
    opacity: 0;
    display: none;
    line-height: 1.5;
}

.error-message.show {
    opacity: 1;
    display: block;
    animation: shake 0.3s;
}

@keyframes shake {
    0%, 100% { transform: translate(0); }
    25% { transform: translate(-5px); }
    75% { transform: translate(5px); }
}

.ro-graphic {
    position: absolute;
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.graphic-1 { /* Poring */
    width: 80px;
    top: 15%;
    left: 10%;
}

.graphic-2 { /* Mavka */
    width: 120px;
    bottom: 10%;
    right: 8%;
    animation-delay: -2s;
}

.graphic-3 { /* Knight */
    width: 130px;
    top: 12%;
    right: 12%;
    animation-delay: -4s;
}

.graphic-4 { /* Hunter */
    width: 130px;
    bottom: 12%;
    left: 6%;
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

@media (max-width: 600px) {
    h1 { font-size: 1.8rem; }
    .subtitle { font-size: 0.6rem; }
    .ro-graphic {
        width: 60px;
        opacity: 0.4;
    }
    .graphic-2, .graphic-3, .graphic-4 {
         width: 90px;
    }
}