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;
    color: #213A47;
}

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.7);
}

.container h1{
    text-align: center;
}

.main-container {
    width: 60%;
    height: auto;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 0 20px rgb(0, 171, 200);
    text-align: center;
}

.main-container .page-title {
    color: #213A47;
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
}

.main-container p {
    color: #555555;
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 40px;
    word-wrap: break-word;
}

.qr-code-container img {
    max-width: 250px; 
    height: auto; 
    margin: 0 auto; 
    display: block;
    border: 1px solid #ddd; 
    border-radius: 4px; 
    box-shadow: 0 0 20px rgb(0, 171, 200); 
}


form input[type="text"],
form input[type="password"] {
    width: 100%;
    padding: 10px;
    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-requirements {
    background-color: #e9f7fe;
    border: 1px solid #b8daff;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.password-requirements h4 {
    margin-top: 0;
    font-size: 16px;
    color: #213A47;
}

.password-requirements ul {
    padding-left: 20px;
    margin: 0;
    color: #213A47;
}

.password-requirements li {
    margin-bottom: 5px;
}

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

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

.error-message {
    color: #ff0000;
    margin-bottom: 10px;
    text-align: center;
}

.errorlist {
    list-style-type: none; 
    padding: 0;
    margin: 10px 0;
}

.errorlist.nonfield {
    color: #ff0000; 
    background-color: #f8d7da; 
    border: 1px solid #f5c6cb;
    padding: 10px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
}

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

button {
    width: 100%;
    padding: 10px 20px;
    background-color: #00ABC8;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

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

.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; 
}

.support-container {
    margin-top: 30px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.support-text {
    font-size: 16px;
    color:  #213A47;
    margin-right: 10px; 
    font-weight: bold;
}

.separator {
    font-size: 20px; 
    color:  #213A47;
    margin: 0 10px; 
}

.support-link {
    color: #00ABC8; 
    text-decoration: none; 
    font-size: 16px; 
}

.support-link:hover {
    text-decoration: underline;   
    background-color: transparent; 
    transition: background-color 0.3s; 
}

.footer {
    background-color: #1e3b4a;
    color: #ffffff;
    text-align: center;
    padding: 20px 0;
    position: fixed;
    width: 100%;
    bottom: 0;
  }
  
  .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;
  }

/* Error Messages:*/
.alert {
    padding: 10px 12px; 
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
    display: flex; 
    align-items: center;
    gap: 8px; 
}

.alert-error {
    background-color: #e74c3c; 
    color: #F2F0F0;
    border: 1px solid #f5c6cb;

}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 10px 12px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-warning {
    color: #ff9800; ;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
}

.alert.error ul {
    margin: 0;
    padding-left: 20px; 
}

.alert.error li {
    margin-bottom: 5px; 
}

.alert.success ul {
    margin: 0;
    padding-left: 20px; 
}

.alert.success li {
    margin-bottom: 5px; 
}

.lockout-message h1 {
    color: #e74c3c; 
    margin-bottom: 20px;
    text-align: center;
}

.lockout-message p {
    color: #333;
    font-size: 16px;
    text-align: center;
}

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

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

.input-field {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #F2F0F0;
    border-radius: 4px;
    box-sizing: border-box;
}

.btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    background-color: #213A47;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

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

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

.links a {
    color: #00ABC8;
    text-decoration: none;
    padding: 5px 10px;
}

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

.links span {
    margin-left: 5px; 
}

.timer {
    display: none;
    font-size: 18px;
    color: #00ABC8;
    font-weight: bold;
    text-align: center;
    margin-top: 15px;
    margin-bottom: 15px;
  }

.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) {
    .main-container {
        transform: scale(0.5); 
    }
}

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

    .container {
        padding: 10px;     
    }

    .main-container {
        padding: 30px;
        transform: scale(0.9);
    }

    .main-container .page-title {
        font-size: 28px;
    }

    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; 
    }

    .support-text, .support-link {
        font-size: 14px; 
    }

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

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

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

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

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

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