@font-face {
    font-family: 'Readex Pro';
    src: url('/font/Readex_Pro/static/ReadexPro-Regular.ttf') format('truetype');
    font-weight: normal; /* Normal font weight */
    font-style: normal;
}

@font-face {
    font-family: 'Readex Pro';
    src: url('/font/Readex_Pro/static/ReadexPro-SemiBold.ttf') format('truetype');
    font-weight: 600; /* Semi-bold font weight */
    font-style: normal;
}

* {
    box-sizing: border-box;
    font-family: 'Readex Pro', 'Times New Roman', 'sans-serif';
}

/* Scrollbar */
::-webkit-scrollbar {
    height: 5px;
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #cecece;
}

::-webkit-scrollbar-thumb {
    background: #968e85;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

body {
    align-items: center;
    display: flex;
    justify-content: center;
    margin: auto 0;
    height: 100vh;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: linear-gradient(to bottom, #ffffff50 0%, #ffffff00 20%);
}

#background-video {
    filter: brightness(0.5);
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -2;
}

.content {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    margin-top: -50px;
    padding: 0 40px;
    width: 400px;
}

#logo {
    max-height: 100px;
    width: 100%;
}

.login-field-container, .login-reset-container {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.login-field-container {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.login-reset-container {
    display: none;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.login-field, #cancel-reset-button {
    background-color: #d9d9d950;
    color: #fff;
    border: 0;
    border-radius: 10px;
    padding: 10px 20px;
    transition: height 2s ease;
    width: 100%;
}

.login-field, #reset-email-field {
    align-items: center;
    background-color: #fff;
    color: #000000;
    display: flex;
    gap: 10px;
}

.login-field::placeholder {
    color: #000000 !important;
}

.login-field::placeholder,
#login-message, #reset-email-field::placeholder {
    color: #fff;
}

#login-button, #send-reset-button {
    border: 0;
    border-radius: 10px;
    box-shadow: 0 0 9px 0 #00000096;
    color: #fff;
    padding: 10px 20px;
    width: 100%;
}

#forgot-password-button {
    border: 0;
    background-color: transparent;
    color: #fff;
    filter: drop-shadow(0 0 9px #00000096);
    width: fit-content;
}

#reset-email-field {
    border: 0;
    background-color: transparent;
    width: 90%;
}

#password-reset-tooltip {
    color: #fff;
    font-size: 80%;
}

#login-button,
#forgot-password-button,
#clear-reset-email-field,
#cancel-reset-button {
    transition: all 0.2s ease;
}

/* Hover effect */
#login-button:hover,
#forgot-password-button:hover,
#clear-reset-email-field:hover,
#cancel-reset-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
    filter: brightness(1.1);
    cursor: pointer;
}

/* Click (active) effect */
#login-button:active,
#forgot-password-button:active,
#clear-reset-email-field:active,
#cancel-reset-button:active {
    transform: translateY(0) scale(0.96);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
    filter: brightness(0.9);
}

.error-field {
    border: 1px solid #ff0000;
}

@media only screen and (min-width: 811px) {
    #background-video {
        object-fit: none;
    }
}

@media only screen and (min-width: 1621px) {
    body {
        background-color: #2c2c2c;
    }

    #background-video {
        display: none;
    }

    .overlay {
        background: url("/images/login background.jpeg");
        background-size: cover;
        background-position-y: bottom;
        filter: brightness(0.5);
    }
}