body.live-env {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-image: url('/static/media/beautiful-nature.png'); 
    background-size: cover ;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    position: relative;
    overflow: hidden;
    flex-direction: column;
}

body.test-env {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #213A47;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    position: relative;
    overflow: hidden;
    flex-direction: column;
    color: #213A47;
}

.container {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    background-color: #F2F0F0;
    border-radius: 8px;
    box-shadow: 0 0 20px rgb(0, 171, 200);
    z-index: 9999; 
    position: relative;
    transform: scale(0.8); 
}

form input[type="text"],
form input[type="password"],
form input[type="email"] {
    width: calc(100% - 20px);  
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #F2F0F0;
    border-radius: 4px;
}

form input[type="submit"] {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    background-color: #213A47;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

form input[type="submit"]:hover {
    background-color: #00ABC8;
    box-shadow: 0 0 10px rgb(0, 171, 200);
}

.password-toggle-btn {
    display: inline-block;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px; 
    color: #213A47;
    transition: color 0.3s;
    transform: translate(75px, -65px);
}

.password-toggle-btn:hover {
    color: #00ABC8;
}

.errorlist {
    list-style-type: none;
    padding: 0;
    margin: 10px 0;
    width: 100%; 
    box-sizing: border-box; 
}

.errorlist li {
    color: #ff0000;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 10px 12px; 
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
    display: flex; 
    align-items: center;
    gap: 8px; 
}

.errorlist li::before {
    content: "⚠️"; 
    color: #ff0000;
    font-size: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group small {
    color: #6c757d;
}

.form-group a {
    color: #007d91;
    text-decoration: none;
}

.form-group a:hover {
    text-decoration: underline;
}

.overlay {
    position: fixed; 
    top: 2%;
    left: 50%; 
    transform: translateX(-50%); 
    width: 220px; 
    height: 80px; 
    background-image: url('/static/media/PoroUS_logo_white.png');
    background-repeat: no-repeat;
    background-size: contain;
    z-index: 10000; 
}

::-webkit-scrollbar {
    width: 10px; 
}

::-webkit-scrollbar-track {
    background-color: #F2F0F0; 
}

::-webkit-scrollbar-thumb {
    background-color: #213A47; 
    border-radius: 5px; 
}

.footer {
    background-color: #213A47;
    color: #ffffff;
    text-align: center;
    padding: 20px 0;
    position: fixed;
    width: 100%;
    bottom: 0;
    z-index: 1; 
  }
  
  .footer-links a {
    color: #00abc8;
    text-decoration: none;
    margin: 0 10px;
    font-weight: bold;
  }
  
  .footer-links a:hover {
    text-decoration: underline;
  }
  
  .footer-links {
    font-size: 14px;
  }

  .links {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
}

.links a {
    color: #00ABC8;
    text-decoration: none;
}

.links a:hover {
    text-decoration: underline;
}

.activation-container {
    max-width: 400px;
    margin: 50px auto; 
    padding: 20px;
    background-color: #F2F0F0; 
    border-radius: 8px;
    box-shadow: 0 0 20px rgb(0, 171, 200);
    z-index: 9999;
    position: relative;
    transform: scale(0.8);
}

.activation-container h1 {
    color: #213A47;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2em;
}

.invalid-title {
    color: #e74c3c;
}

.activation-container p {
    color: #333;
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: center;
}

.activation-container a {
    color: #00ABC8;
    text-decoration: none;
}

.activation-container a:hover {
    text-decoration: underline;
}

.btn {
    display: inline-block;
    width: 100%;
    padding: 12px;
    background-color: #213A47;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
    margin-top: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
    border:none;
    text-decoration: none; 
}

.btn:hover {
    background-color: #00ABC8;
    box-shadow: 0 0 10px rgb(0, 171, 200);
}

.activation-container .invalid-title {
    color: #e74c3c;
}

.activation-container .valid-title {
    color: #155724;
}

.button-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.button-group .btn {
    margin-bottom: 10px;
    width: 80%; 
}

.button-group a.btn {
    color: #fff;
    text-decoration: none;
}

.activation-container input {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #F2F0F0;
    border-radius: 5px;
    box-sizing: border-box;
}

.activation-container .messages p {
    color: green;
    font-weight: bold;
}

.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.popup-content {
    background-color: #F2F0F0;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 20px rgb(0, 171, 200);
}

.popup-content h2 {
    margin-bottom: 20px;
}

.popup-content p {
    margin-bottom: 20px;
}

.popup-content .btn {
    padding: 10px 20px;
    background-color: #213A47;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.popup-content .btn:hover {
    background-color: #00ABC8;
}

@media screen and (min-width: 1200px) {
    .container {
        transform: scale(0.6); /* Maximale Höhe beschränkt auf 80% der Bildschirmhöhe */
    }
}


@media screen and (max-width: 768px) {
    body {
        background-position: top;
        padding: 20px;
    }

    .container {
        padding: 10px;
    }

    form input[type="submit"] {
        font-size: 14px;
        padding: 10px;
      }

    .footer {
        padding: 10px 0;
        font-size: 12px;
    }

    .footer-links a {
        margin: 0 5px;
    }

    .overlay {
        width: 180px;
        height: 60px;
        top: 10px;
    }

    .activation-container {
        max-width: 90%;
        margin: 20px auto;
        padding: 15px;
    }

    .btn {
        padding: 10px;
        font-size: 14px;
    }

    .popup-content {
        padding: 20px;
        width: 90%;
    }
}

@media screen and (max-width: 480px) {
    .container, .activation-container {
        padding: 10px;
    }

    form input[type="submit"] {
        font-size: 12px;
        padding: 8px;
    }
    
    .btn {
        padding: 8px;
        font-size: 14px;
    }

    .footer {
        padding: 8px 0;
        font-size: 10px;
    }
}