@font-face {
    font-family: "pixelFont";
    src: url("../fonts/pixel.ttf");
}

@font-face {
    font-family: "pixelFont2";
    src: url("../fonts/vhs-gothic.ttf");
}

body {
    font-family: "pixelFont";
    background-image: url("../images/star-background.gif");
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 97vh;
    gap: 2vw;
}

.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2vw;
    height: 100%;
    position: relative; 
}

.login-box {
    background-color: rgb(255, 255, 255);
    width: 40%; 
    min-width: 400px;
    max-width: 600px;
    height: 50%; 
    min-height: 200px;
    max-height: 800px; 
    border: 4px solid black;
    border-left: 16px solid black;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    padding: 30px;
    border-radius: 5px;
}

.error-prompt {
    background-color: rgb(255, 255, 255);
    width: 30%;
    min-width: 250px;
    max-width: 400px;
    border: 4px solid red;
    border-left: 16px solid red;
    padding: 20px;
    border-radius: 5px;
    height: 30%;
    max-height: 500px;
    min-height: 50px;
    position: absolute;
    left: 110%; 

    z-index: 10;
}

.error-title-container {
    text-align: center;
    position: absolute;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 90%;
    color: red;
    border-bottom: 4px dotted red;
}

.error-wrap {
    display: flex;
    height: 100%;
    width: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.login-form, .signup-form {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    position: relative;
}

.switchLink {
    position: absolute;
    bottom: 0;
    width: 100%;
    transition: .2s;
}


.defaultStyle {
    border: 2px solid black;
    border-left: 5px solid black;
    color: black;
}

.errorStyle {
    border: 2px solid red;
    border-left: 5px solid red;
    color: red;
}

.login-box h2 {
    font-family: "pixelFont";
    font-size: 3rem;
    margin: 10% 0 10% 0;
}

.login-box input {
    font-family: "pixelFont2";
    width: 75%;
    padding: 5px;
    margin-bottom: 15px;
    font-size: 16px;
    transition: 0.3s;
    border-radius: 5px;
}

.login-box input:focus {
    border-color: #6E6FB0;
    outline: none;
}

.login-box button {
    padding: 6px;
    width: 50%;
    border: 2px solid black;
    border-left: 5px solid black;
    background-color: white;
    font-family: "pixelFont";
    font-size: 1rem;
    border-radius: 5px;
}

.login-box button:hover {
    background: #6E6FB0;
    cursor: pointer;
}

.toggle-btn {
    color: #6E6FB0;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.toggle-btn:hover {
    color: rgb(243, 98, 98);
}

.errorMessage {
    margin-top: 4vh;
    padding: 0px;
    color: red;
}

@media (max-width: 768px) {
    .login-wrapper {
        flex-direction: column;
    }

    .error-prompt {
        width: 50%;
        top: 0px;
        left: 1%;
        height: 13%;
    }
}
