/* ============================================================================
   ZENTRALE CSS FÜR ALLE STARTSEITEN
   Wartungsfreundlich: Alle gemeinsamen Styles in einer Datei
   ============================================================================ */

/* 🎯 BASIS-STYLES */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #fff;
    min-height: 100vh;
    background: url('../../img/background.png') no-repeat center center fixed;
    background-size: cover;
    overflow-x: hidden;
}

/* 🎯 HINTERGRUND-OVERLAY */
.background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.07);
    z-index: 0;
}

/* 🎯 SPRACH-UMSCHALTER */
.lang-switch {
    position: absolute;
    top: 25px;
    right: 35px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 12px;
    padding: 6px 15px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.lang-btn {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: 1px solid #00c3ff;
    border-radius: 8px;
    padding: 6px 16px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn.active,
.lang-btn:hover {
    background: #00c3ff;
    color: #000;
    box-shadow: 0 0 15px rgba(0, 195, 255, 0.5);
}

/* 🎯 CONTAINER-STYLES (Login, Register, Forgot Password, Verify Email) */
.login-container,
.reg-container,
.forgot-container,
.verify-container {
    position: relative;
    z-index: 1;
    max-width: 420px;
    margin: 80px auto;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
    padding: 40px 35px 35px 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.reg-container {
    max-width: 450px;
    margin: 60px auto;
}

.forgot-container {
    max-width: 420px;
}

/* 🎯 ÜBERSCHRIFTEN */
h1 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 2.2rem;
    letter-spacing: 2px;
    color: #00c3ff;
    text-shadow: 0 0 15px #00c3ff;
    font-weight: bold;
}

/* 🎯 LABELS */
label {
    margin-top: 15px;
    margin-bottom: 6px;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    color: #e0e0e0;
    font-weight: 500;
}

.required {
    color: #ff6b6b;
    font-weight: bold;
}

/* 🎯 INPUT-FELDER */
input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(20, 20, 30, 0.8);
    color: #fff;
    font-size: 1rem;
    margin-bottom: 8px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    border-color: #00c3ff;
    box-shadow: 0 0 15px rgba(0, 195, 255, 0.4);
    background: rgba(20, 20, 30, 0.9);
}

input::placeholder {
    color: #aaa;
}

/* 🎯 PASSWORD-TOGGLE */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.3em;
    color: #aaa;
    user-select: none;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #00c3ff;
}

/* 🎯 BUTTONS - Verwendet admin-and-game-buttons.css */
/* Buttons werden über .btn .btn-green / .btn-blue Klassen gestylt */

/* 🎯 INFO-TEXTE */
.info {
    margin-top: 20px;
    font-size: 1rem;
    color: #b0c4ff;
    text-align: center;
    line-height: 1.5;
}

/* 🎯 LINK-CONTAINER */
.link-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    width: 100%;
    align-items: center;
}

.link-container a {
    color: #00c3ff;
    text-align: center;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.link-container a:hover {
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

/* 🎯 MESSAGE-BOXEN */
#login-message,
#reg-message,
#forgot-message,
#verify-message {
    margin-top: 15px;
    min-height: 25px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 8px;
    padding: 8px;
}

/* 🎯 INDEX.HTML SPEZIELLE STYLES */
.logo {
    display: block;
    margin: 48px auto 18px auto;
    width: 260px;
    filter: drop-shadow(0 0 24px #4a90e2);
}

.main-panel {
    max-width: 480px;
    margin: 32px auto 0 auto;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 22px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.25);
    padding: 38px 36px 32px 36px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.main-panel h1 {
    font-size: 2.2rem;
    margin-bottom: 12px;
    letter-spacing: 1px;
    color: #4a90e2;
    text-shadow: 0 0 12px #223366;
}

.story {
    font-size: 1.15rem;
    margin-bottom: 28px;
    color: #e0e6f0;
    text-shadow: 0 0 8px #1a2233;
}

.countdown {
    font-size: 1.3rem;
    margin: 18px 0;
    color: #ffd700;
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 0 0 8px #4a90e2;
}

.pre-reg {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    margin-top: 24px;
    font-size: 1.1rem;
    color: #00ffae;
    font-weight: bold;
}

/* 🎯 VERIFY-EMAIL SPEZIELLE STYLES */
.verify-message {
    margin-top: 10px;
    padding: 8px;
    border-radius: 4px;
    text-align: center;
}

.verify-message.error {
    color: red;
    background: rgba(255, 0, 0, 0.1);
}

.verify-message.success {
    color: green;
    background: rgba(0, 255, 0, 0.1);
}

.verify-message.info {
    color: blue;
    background: rgba(0, 0, 255, 0.1);
}

/* 🎯 RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .login-container,
    .reg-container,
    .forgot-container,
    .verify-container {
        margin: 60px 20px;
        padding: 30px 25px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .lang-switch {
        top: 15px;
        right: 15px;
        padding: 4px 10px;
    }
    
    .main-panel {
        margin: 20px;
        padding: 30px 20px;
    }
    
    .logo {
        width: 200px;
    }
}

@media (max-width: 600px) {
    .main-panel {
        max-width: 98vw;
        padding: 18px 6vw;
    }
    
    .logo {
        width: 160px;
    }
    
    .lang-switch {
        right: 12px;
        top: 12px;
    }
    
    .pre-reg {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .login-container,
    .reg-container,
    .forgot-container,
    .verify-container {
        margin: 40px 15px;
        padding: 25px 20px;
    }
    
    h1 {
        font-size: 1.6rem;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="password"] {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
}

