/* --- SPACE WARS LOGIN STYLESHEET --- */

/* Importáljuk az Orbitron betűtípust a sci-fi hatáshoz */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

body {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Ugyanaz a mélyűri radial gradient, mint a main-ben */
    background: radial-gradient(circle at center, #001525 0%, #050505 60%, #000000 100%);
    font-family: 'Orbitron', sans-serif;
    color: #fff;
    overflow: hidden;
}

/* A háttér csillagpor effektje (opcionális, de ajánlott az egységességhez) */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0.03;
    pointer-events: none;
    background-image: url('https://www.transparenttextures.com/patterns/stardust.png');
    z-index: 0;
}

/* A fő konténer: HUD panel stílus */
#main-content {
    position: relative;
    z-index: 10;
    background: rgba(0, 10, 20, 0.85); /* Sötét, üvegszerű kék */
    backdrop-filter: blur(12px);
    padding: 50px;
    border-radius: 4px; /* Szögletesebb, indusztriális forma */
    border: 1px solid rgba(0, 212, 255, 0.3);
    /* Neon ragyogás */
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 212, 255, 0.1);
    width: 380px;
    text-align: center;
    /* "Vágott" sarkok sci-fi hatáshoz */
    clip-path: polygon(0 10%, 10% 0, 100% 0, 100% 90%, 90% 100%, 0 100%);
}

h1 {
    color: #00d4ff;
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 40px;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
}

/* Form elrendezés */
form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Bemeneti mezők stílusa */
input {
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.3);
    padding: 14px;
    border-radius: 0; /* Szögletes mezők */
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
    border-left: 3px solid rgba(0, 212, 255, 0.1);
}

input:focus {
    border-color: #00d4ff;
    background: rgba(0, 212, 255, 0.15);
    box-shadow: inset 0 0 10px rgba(0, 212, 255, 0.2);
    border-left: 3px solid #00d4ff;
}

/* Neon gomb stílus (mint a menüben) */
button {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid #00d4ff;
    color: #00d4ff;
    padding: 15px;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 3px;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.4s ease;
}

button:hover {
    background: #00d4ff;
    color: #000;
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.6);
    transform: scale(1.02);
}

/* Átváltó szöveg */
p {
    margin-top: 30px;
    font-size: 0.75rem;
    color: #55a3b5;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

p:hover {
    color: #00d4ff;
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.4);
}

/* Regisztrációs div alapból rejtve */
#register-div {
    display: none;
}

/*MODAL*/
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    display: none; /* Alapból rejtve */
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 1000;
}

.modal-content {
    background: rgba(0, 20, 40, 0.95);
    border: 1px solid #00d4ff;
    padding: 30px;
    width: 400px;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.2);
    text-align: center;
    animation: modalPulse 3s infinite;
}

.modal-title {
    color: #00d4ff;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 3px;
    font-size: 1.2rem;
}

.header-line {
    height: 2px;
    background: linear-gradient(to right, transparent, #00d4ff, transparent);
    margin: 15px 0;
}

#modal-text {
    color: #fff;
    margin-bottom: 30px;
    font-size: 0.9rem;
}

/* Gombok a modalban */
.modal-btn {
    padding: 10px 20px;
    font-family: 'Orbitron', sans-serif;
    cursor: pointer;
    border: 1px solid #00d4ff;
    transition: all 0.3s;
}

.modal-btn.primary {
    background: #00d4ff;
    color: #000;
}

.modal-btn:hover {
    box-shadow: 0 0 15px #00d4ff;
    transform: scale(1.05);
}

.modal-content[style*="border-color: rgb(255, 68, 68)"] .corner {
    border-color: #ff4444;
}