@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');

body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #111111;
    font-family: "Raleway", sans-serif;
    color: #d9d9d9;
}

.auth-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 500px;
    margin-top: -50px;
}

.logo-container {
    width: 100%;
    text-align: center;
    margin-bottom: 30px;
}

.loginlogo {
    height: auto;
}

.auth-container {
    width: 100%;
    padding: 20px;
    background-color: #222;
    border-radius: 9px;
    box-sizing: border-box;
}

.form-toggle {
    display: flex;
    margin-bottom: 20px;
}

.form-toggle button {
    flex: 1;
    padding: 10px;
    background-color: #333;
    border: none;
    color: #d2d2d2;
    cursor: pointer;
}

.form-toggle button.active {
    background-color: #444;
}

#signup-toggle {
    border-bottom-right-radius: 5px;
    border-top-right-radius: 5px;
}

#login-toggle {
    border-bottom-left-radius: 9px;
    border-top-left-radius: 9px;
}

.auth-form {
    display: flex;
    flex-direction: column;
}

.auth-form input {
    margin-bottom: 10px;
    padding: 10px;
    background-color: #333333;
    border: none;
    color: #d2d2d2;
    width: 100%;
    box-sizing: border-box;
}

.auth-form input:focus,
.auth-form input:hover,
.auth-form input:active,
.auth-form input:not(:placeholder-shown) {
    background-color: #333333;
    outline: none;
}

.auth-form input:-webkit-autofill,
.auth-form input:-webkit-autofill:hover,
.auth-form input:-webkit-autofill:focus,
.auth-form input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #333333 inset !important;
    -webkit-text-fill-color: #d2d2d2 !important;
}

.auth-form button {
    padding: 10px;
    background-color: #555;
    border: none;
    color: #d2d2d2;
    cursor: pointer;
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    background-color: #111111;
}

.footer a {
    color: #aaaaaa;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 14px;
}

.footer a:hover {
    color: #ffffff;
}

.hidden {
    display: none;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    justify-content: center;
    align-items: center;
}

body.modal-open .modal {
    display: flex;
}

.modal-content {
    background-color: #1a1a1a;
    padding: 20px;
    border: 1px solid #555555;
    width: 80%;
    max-width: 700px;
    height: 70vh;
    overflow-y: auto;
    position: relative;
}

.close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

.modal-body {
    color: #aaaaaa;
    margin-top: 26px;
    height: 90%;
    overflow-y: auto;
}

/* Custom scrollbar */
.modal-body::-webkit-scrollbar {
    width: 10px;
}

.modal-body::-webkit-scrollbar-track {
    background: #111111;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #2833a1;
    border: 1px solid #001d7a;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #3544c2;
}