@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap");

@font-face {
    font-family: "Minecraft Five Bold";
    src: url('/static/fonts/minecraft-five-bold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'minecraft-regular';
    src: url('../fonts/minecraft-regular-webfont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Minecraft Five Bold", sans-serif;
}

.wrapper, .wrapper * {
    font-family: "Poppins", sans-serif;
}


body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: url('/static/images/banner.png') no-repeat center center fixed;
    background-size: cover;
    color: white;
}

.header {
    width: 100%;
    min-height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
}

/* Neuer Hauptbereich */
.main-content {
    margin: 0 auto;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.banner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    gap: 10px;
    background: transparent;
    border-radius: 10px;
}

#footer {
    text-align: center;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 12px;
}

/* Footer Style */
#footer-box {
    background-color: rgba(63, 63, 63, 0.7);
    border: 2px solid #DCDCDC;
    border-radius: 25px;
    text-align: center;
    padding: 10px 30px;
    width: fit-content;
    margin: 20px auto;  
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.navbar {
    background-color: rgba(63, 63, 63, 0.7);
    border: 2px solid #DCDCDC;
    border-radius: 25px;
    text-align: center;
    padding: 10px 30px;
    width: fit-content;
    margin: 20px auto;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.navbar li a {
    text-decoration: none;
    color: white;
    font-size: 1.2em;
    padding: 8px 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: inline-block;
}

.navbar li a:hover {
    background-color: #61dafb;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(97, 218, 251, 0.5);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    border: 0;
}

.wrapper {
    width: 420px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, .2);
    backdrop-filter: blur(20px);
    box-shadow: 0 0 10px rgba(0, 0, 0, .2);
    color: #fff;
    border-radius: 10px;
    padding: 30px 40px;
}

.wrapper h1 {
    font-size: 36px;
    text-align: center;
}

.wrapper .input-box {
    position: relative;
    width: 100%;
    height: 50px;
    margin: 30px 0;
}

.input-box input {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    border: 2px solid rgba(255, 255, 255, .2);
    border-radius: 40px;
    font-size: 16px;
    color: #fff;
    padding: 20px 45px 20px 20px;
}

.input-box input::placeholder {
    color: #fff;   
}

.input-box i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
}

.wrapper .remember-forgot {
    display: flex;
    justify-content: space-between;
    font-size: 14.5px;
    margin: -15px 0 15px;
}

.remember-forgot label input {
    accent-color: #fff;
    margin-right: 3px;
}

.remember-forgot a {
    color: #fff;
    text-decoration: none;
}

.remember-forgot a:hover {
    text-decoration: underline;
}

.wrapper .btn {
    text-transform: none;
    text-shadow: 0 0 16px rgba(0, 0, 0, .1);
    width: 100%;
    height: 45px;
    font-family: "Poppins", sans-serif;
    background: #fff;
    border: none;
    outline: none;
    border-radius: 40px;
    box-shadow: 0 0 16px rgba(0, 0, 0, .1);
    cursor: pointer;
    font-size: 16px;
    color: #333;
    flex: 1;
    height: 55px; 
    border: none;
    outline: none;
    font-family: "Poppins", sans-serif;
    border-radius: 40px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0 20px;
}

.wrapper .register-link {
    font-size: 14.5px;
    text-align: center;
    margin: 20px 0 15px;
}

.register-link p a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.register-link p a:hover {
    text-decoration: underline;
}

.alert {
    margin-top: 20px;
    padding: 10px 20px;
    border-radius: 5px;
    text-align: center;
    font-family: "Minecraft Five Bold", Arial, sans-serif;
    animation: fadeOut 10s forwards;
}

.alert-error {
    background-color: rgba(255, 0, 0, 0.8);
    border: 2px solid #ff0000;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

@keyframes fadeOut {
    0% { opacity: 1; }
    70% { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
}

.button-group {
    text-transform: none;
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}


.btn {
    text-transform: none;
    width: 100%;
    height: 55px;
    padding: 0 20px;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    font-family: "Poppins", sans-serif;
    box-shadow: 0 0 10px rgba(0, 0, 0, .1);
    transition: all 0.3s ease;
    text-transform: none;
}

.btn:hover {
    text-transform: none;
    transform: scale(1.05);
}



#datenschutz {
    margin: 20px auto;
    max-width: 800px;
    padding: 20px;
    border: 2px solid #DCDCDC;
    border-radius: 25px;
    background-color: rgba(63, 63, 63, 0.7);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    text-align: left;
    font-size: 1.1em;
}

#datenschutz p,
#datenschutz li {
    font-family: 'minecraft-regular', sans-serif;
    line-height: 1.6;
    margin: 10px 0;
}

#datenschutz h2,
#datenschutz h3,
#datenschutz h4 {
    font-family: "Minecraft Five Bold", Arial, sans-serif; 
    color: #DCDCDC;
}

#datenschutz-box {
    margin: 20px auto;
    max-width: 800px;
    padding: 20px;
    border: 2px solid #DCDCDC;
    border-radius: 25px;
    background-color: rgba(63, 63, 63, 0.7);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    text-align: left;
    font-size: 20px;
    line-height: 1.2;
}

#datenschutz h2 {
    text-align: center;
    color: #61dafb;
}

#datenschutz p {
    margin: 10px 0;
    line-height: 1.6;
    color: white;
    font-size: 20px;
    font-family: 'minecraft-regular', sans-serif;
    text-align: justify;
}

.datenschutz-box p,
.datenschutz-box li {
    font-family: 'minecraft-regular', sans-serif;
    font-size: 20px;
    line-height: 1.2;
}

.datenschutz-box h2,
.datenschutz-box h3,
.datenschutz-box h4 {
    font-family: "Minecraft Five Bold", Arial, sans-serif;
}

/* --- MOBILE BOTTOM NAVIGATION --- */
@media (max-width: 900px) {
  .mobile-bottom-nav {
    position: fixed;
    left: 0; right: 0; bottom: 24px;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 9999;
    background: none;
    pointer-events: none;
    height: 100px;
  }
  .mobile-bottom-nav .nav-btn {
    pointer-events: auto;
    border: none;
    outline: none;
    background: #23272e;
    color: #fff;
    font-size: 2.5rem;
    height: 72px;
    width: 72px;
    margin: 0 18px;
    transition: background 0.2s, box-shadow 0.2s, color 0.2s;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
  }
  .mobile-bottom-nav .nav-home {
    background: #23272e;
    color: #61dafb;
    border-radius: 50%;
    border: 3px solid #23272e;
    box-shadow: 0 4px 24px rgba(97,218,251,0.18);
    font-size: 2.8rem;
    z-index: 2;
  }
  .mobile-bottom-nav .nav-btn:active,
  .mobile-bottom-nav .nav-btn:focus {
    background: #2d323b;
    color: #61dafb;
  }
  .mobile-nav-menu {
    display: none;
    position: absolute;
    bottom: 90px;
    right: 0;
    left: 0;
    margin: 0 auto;
    background: #23272e;
    border-radius: 18px 18px 18px 18px;
    box-shadow: 0 -2px 24px rgba(0,0,0,0.25);
    padding: 18px 0 12px 0;
    width: 92vw;
    max-width: 340px;
    text-align: center;
    animation: menuDown 0.3s;
    z-index: 10;
  }
  .mobile-nav-menu.active {
    display: block;
    animation: menuUp 0.3s;
    pointer-events: auto;
  }
  .mobile-nav-menu.active::before {
    content: "";
    position: fixed;
    left: 0; top: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: -1;
  }
  .mobile-nav-menu a {
    display: block;
    color: #fff;
    padding: 14px 0;
    font-size: 1.2em;
    text-decoration: none;
    border-bottom: 1px solid #333;
    transition: background 0.2s;
  }
  .mobile-nav-menu a:last-child {
    border-bottom: none;
  }
  .mobile-nav-menu a:hover {
    background: #61dafb22;
    color: #61dafb;
  }
  @keyframes menuUp {
    from { opacity: 0; transform: translateY(40px);}
    to   { opacity: 1; transform: translateY(0);}
  }
  @keyframes menuDown {
    from { opacity: 1; transform: translateY(0);}
    to   { opacity: 0; transform: translateY(40px);}
  }
  /* Ensure login form and button are visible and above nav */
  .main-content {
    padding-bottom: 120px !important;
    z-index: 10;
    position: relative;
  }
  .wrapper .btn, .button-group .btn {
    z-index: 20;
    position: relative;
  }
}

/* --- MOBILE LOGIN NAVIGATION --- */
@media (max-width: 900px) {
  .main-content {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: 80vh !important;
    padding-bottom: 120px !important;
    z-index: 10;
    position: relative;
  }
  .wrapper {
    margin: 0 auto !important;
    width: 95vw !important;
    max-width: 400px !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }
  .mobile-bottom-nav.mobile-login-nav {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 100px;
    gap: 0;
    position: fixed;
    left: 0; right: 0; bottom: 24px;
    width: 100vw;
    z-index: 9999;
    background: none;
    pointer-events: none;
  }
  .mobile-bottom-nav .nav-btn {
    pointer-events: auto;
    background: #23272e;
    color: #fff;
    border-radius: 22px;
    border: none;
    font-size: 2.2rem;
    height: 62px;
    width: 62px;
    margin: 0 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
    transition: background 0.2s, box-shadow 0.2s, color 0.2s;
  }
  .mobile-bottom-nav .nav-home {
    color: #61dafb;
    border-radius: 50%;
    border: 3px solid #23272e;
    box-shadow: 0 4px 24px rgba(97,218,251,0.18);
    font-size: 2.8rem;
    z-index: 2;
    height: 72px;
    width: 72px;
    margin: 0 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    left: 0;
  }
  .mobile-bottom-nav .nav-btn i {
    font-size: 2.2rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .mobile-bottom-nav .nav-login {
    color: #2ecc71;
    margin-left: 0;
    margin-right: auto;
  }
  .mobile-bottom-nav .nav-register {
    color: #ffc107;
    margin-right: 0;
    margin-left: auto;
  }
  .button-group {
    display: none !important;
  }
}
@media (min-width: 901px) {
    .mobile-bottom-nav {
        display: none !important;
    }
}
