/*
    Copyright 2023 by 
    All rights reserved.
    This file is part of the Avalon-NLU repository,
    and is released under the "MIT License Agreement". Please see the LICENSE
    file that should have been included as part of this package.
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500&display=swap');
* {
    margin: 0;
    padding: 0;
    font-family: 'poppins', sans-serif;
}

section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    background: linear-gradient(
        to bottom,
        rgb(12, 60, 79) 0%,
        rgb(20, 76, 98) 10%,
        rgb(33, 96, 115) 20%,
        rgb(54, 108, 123) 30%,
        rgb(90, 85, 93) 40%,
        rgb(78, 64, 65) 50%,
        rgb(50, 62, 66) 60%,
        rgb(22, 49, 66) 70%,
        rgb(6, 38, 62) 80%,
        rgb(3, 28, 54) 90%,
        rgb(3, 28, 54) 100%
    );
    background-position: center;
    background-size: cover;
}

.login-box {
    position: relative;
    width: 400px;
    height: 450px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.register-box {
    position: relative;
    width: 80%;
    height: fit-content;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2em;
}

.form-value {
    width: 80%;
}

h2 {
    font-size: 2em;
    color: #fff;
    text-align: center;
}

h3 {
    font-size: 1.5em;
    color: #fff;
    text-align: left;
}

.inputbox {
    position: relative;
    margin: 0 0 16px 0;
    width: 310px;
    color: white;
}

.inputbox--error {
    font-size: small;
    display: hidden;
    color: red;
}

.hidden {
    display: none;
}

.inputbox label {
    position: absolute;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    color: #fff;
    font-size: 1em;
    pointer-events: none;
    transition: .5s;
    margin-top: -1em;
}

input:focus~label,
input:valid~label {
    top: -5px;
}

.inputbox input {
    width: 100%;
    height: 50px;
    background: transparent;
    border-width: 0 0 1px 0;
    outline: none;
    font-size: 1em;
    padding: 0 5px 0 5px;
    color: #fff;
}

input[type=submit] {
    width: 100%;
    height: 40px;
    border-radius: 40px;
    background: #fff;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    margin-top: 1em;
    margin-bottom: 1em;
}

button[type=submit] {
    width: 100%;
    height: 40px;
    border-radius: 40px;
    background: #fff;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    margin-top: 1em;
    margin-bottom: 1em;
}

.register {
    font-size: .9em;
    color: #fff;
    text-align: center;
    margin: 25px 0 10px;
}

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

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

.consent {
    color: #fff;
    font-family: 'Courier New', Courier, monospace;
    font-weight: normal;
    height: 50%;
    padding: 1em;
}

.cbx_consent {
    color: #fff;
    margin-bottom: 25px;
}

.ctitle {
    font-size: 1.2em;
    color: #fff;
    text-align: left;
    font-family: 'Courier New', Courier, monospace;
}

.error_box {
    color: red;
    font-size: 0.75em;
}

.login-msg {
    text-align: center;
    color: white;
    padding: 5px;
    background-color: lightskyblue;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
}

.error-msg {
    background-color: red;
}

.button:hover {
    background-color: lightgray;
}

.button:disabled {
    background-color: #CCCCCC;
}

.compatibility-msg {
    margin: 10px 0;
    padding: 8px;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
}

.supported {
    background-color: rgba(0, 128, 0, 0.1);
    color: #00c853;
}

.not-supported {
    background-color: rgba(255, 0, 0, 0.1);
    color: #ff5252;
}