/* mod_gaming_gate — Vollbild-Gate: Logo + eigenes Login-Formular */

.gaming-gate {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(45, 166, 208, 0.12) 0%, rgba(11, 15, 19, 0) 60%),
        linear-gradient(180deg, #0B0F13 0%, #101820 55%, #0B0F13 100%);
    color: #C2C3C2;
    font-family: 'Segoe UI', Arial, sans-serif;
    text-align: center;
    overflow: hidden;
    overflow-y: auto;
}

.gg-inner {
    max-width: 90vw;
    width: 360px;
    padding: 24px;
    animation: ggFadeIn 0.8s ease-out both;
}

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

/* ---- Schild mit Animation (Originalgröße, transparent) ---- */
.gg-shield-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 12px;
}

.gg-shield {
    position: relative;
    z-index: 2;
    /* Originalgröße des Logos — kein festes width/height, damit
       Transparenz und Proportionen 1:1 erhalten bleiben. */
    width: auto;
    height: auto;
    max-width: 85vw;
    max-height: 80vh;
    filter: drop-shadow(0 0 18px rgba(45, 166, 208, 0.45));
    animation: ggFloat 3.6s ease-in-out infinite;
    cursor: pointer;
    transition: max-height 0.5s ease, max-width 0.5s ease, filter 0.3s ease;
}

/* Hover: Logo leuchtet stärker (Signal: klickbar) */
.gg-shield:hover {
    filter: drop-shadow(0 0 30px rgba(45, 166, 208, 0.85));
}

/* Nach Klick: Logo verkleinert, Platz fürs Formular */
.gg-shield.gg-shrunk {
    max-width: 180px;
    max-height: 26vh;
}

/* Glow hinter dem Schild (pulsierend) */
.gg-glow {
    position: absolute;
    inset: -18%;
    z-index: 1;
    background: radial-gradient(circle, rgba(45, 166, 208, 0.35) 0%, rgba(45, 166, 208, 0) 70%);
    border-radius: 50%;
    animation: ggPulse 2.4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes ggFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

@keyframes ggPulse {
    0%, 100% { opacity: 0.55; transform: scale(1); }
    50%      { opacity: 1;    transform: scale(1.12); }
}

/* ---- Login-Formular (versteckt bis Klick aufs Logo) ---- */
.gg-hidden {
    display: none !important;
}

.gg-login-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
    animation: ggFadeIn 0.4s ease-out both;
    margin-top: 8px;
}

.gg-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.gg-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #8A908D;
}

.gg-input {
    width: 100%;
    padding: 11px 14px;
    border-radius: 8px;
    border: 1px solid #1E2A36;
    background: #151C24;
    color: #E8EAE9;
    font-size: 15px;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    box-sizing: border-box;
}

.gg-input:focus {
    border-color: #2DA6D0;
    box-shadow: 0 0 0 3px rgba(45, 166, 208, 0.2);
}

.gg-input::placeholder {
    color: #4A5560;
}

.gg-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #8A908D;
    cursor: pointer;
}

.gg-remember input {
    accent-color: #2DA6D0;
}

.gg-btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.gg-btn-login {
    background: linear-gradient(180deg, #2DA6D0, #1E7FA8);
    color: #fff;
    border: 1px solid #3FB8E2;
    box-shadow: 0 4px 18px rgba(45, 166, 208, 0.35);
    width: 100%;
}

.gg-btn-login:hover {
    background: linear-gradient(180deg, #3FB8E2, #2DA6D0);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(45, 166, 208, 0.5);
}

/* ---- Links (Passwort vergessen) ---- */
.gg-links {
    margin-top: 14px;
    text-align: center;
    animation: ggFadeIn 0.4s ease-out both;
}

.gg-links a {
    color: #8A908D;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.gg-links a:hover {
    color: #2DA6D0;
}

/* ---- Responsive ---- */
@media (max-width: 480px) {
    .gg-inner { width: 300px; padding: 16px; }
    .gg-shield { max-height: 30vh; }
}


/* === Invite-Token-Schritt (Registrierung) === */
.gg-invite-step {
  max-width: 340px;
  margin: 0 auto;
  padding: 1.2rem 1.5rem;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.gg-invite-step .gg-field {
  display: block;
  margin-bottom: 0.8rem;
}
.gg-btn-invite {
  width: 100%;
  padding: 0.7rem 1.4rem;
  background: #2DA6D0;
  color: #0B0F13;
  border: none;
  border-radius: 99px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s;
}
.gg-btn-invite:hover { background: #5fc0e0; }
.gg-invite-msg {
  margin-top: 0.7rem;
  font-size: 0.85rem;
  text-align: center;
  min-height: 1.2em;
}
.gg-invite-msg.gg-invite-ok { color: #7bd88f; }
.gg-invite-msg.gg-invite-err { color: #ff8f8f; }
.gg-invite-hint {
  margin-top: 0.6rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}
