body {
    background: linear-gradient(to bottom right, #30333d, #292a33);
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Arial, Helvetica, sans-serif;
}

.error-border {
    border: 2px solid rgb(255, 29, 29);
}
.error-text {
    color: rgb(255, 29, 29);
    font-size: 0.9rem;
    margin-top: 0.2em;
    align-self: flex-start;
}
.password-container {
    position: relative;
}
.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.Container {
    background-color: #1f2127;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 0px 15px rgba(50, 41, 138, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 50rem;
    max-height: 80vh;
    box-sizing: border-box;
}

.LoginForm {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.InputBox {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.InputBox input {
    padding: 20px;
    border-radius: 8px;
    border: none;
    background-color: white;
    box-sizing: border-box;
    font-size: 1rem;
    width: 25rem;
    color: rgb(0, 0, 0);
    font-weight: normal;
}

.InputBox button {
    padding: 10px 10px;
    border-radius: 8px;
    font-size: 2rem;
    border: none;
    background-color: #452d9c;
    color: white;
    font-weight: bold;
    cursor: pointer;
    width: 15rem;
}

.InputBox button:hover {
    background-color: #3f298f;
}

.InputBox input:focus{
    outline: none; /* Remove default focus outline */
    box-shadow: none; /* Remove default focus box-shadow */
}

.QR {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.QR img {
    max-width: 100%;
    height: auto;
}

.QR p {
    color: #fff;
    font-size: 1rem;
    text-align: center;
    font-weight: normal;
}

.password-container {
    position: relative;
}
.password-container input {
    width: 100%;
    padding-right: 40px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    width: 24px;
    height: 24px;
}

.AlreadyHave {
    margin-top: 10px;
    text-align: center;
}

.AlreadyHave p {
    color: #fff;
    font-size: 1rem;
}

.AlreadyHave a:hover {
    text-decoration: underline;
}

.password-container {
    position: relative;
}
.password-container input {
    width: 100%;
    padding-right: 40px;
}
.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    width: 24px;
    height: 24px;
}
.AlreadyHave {
    text-align: center;
    display: flex;
    text-align: right;
}
.AlreadyHave p {
    color: #fff;
    font-size: 1rem;
}
.AlreadyHave a {
    color: #593dbb;
    text-decoration: none;
}
.AlreadyHave a:hover {
    text-decoration: underline;
}

.forgot-password {
    display: flex;
    text-align: right;
    margin-top: 10px;
}
.forgot-password a {
    color: #593dbb;
    text-decoration: none;
}
.forgot-password a:hover {
    text-decoration: underline;
}

.Container h2{
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: white;
    font-weight: bold;
    font-size: 2rem;
    text-align: center;
}

@media (max-width: 1024px){
    .Container{
        width: 45rem;
    }

    .InputBox input{
        width: 20rem;
        font-size: 0.8rem;
    }

    .InputBox button{
        font-size: 0.9rem;
    }
}


@media (max-width: 640px) {
    .Container {
        padding: 40px;
        border-radius: 8px;
        display: flex;
        flex-direction: column; /* Stack items in a column */
        align-items: center; /* Center items horizontally */
        justify-content: center; /* Center items vertically */
        width: 90%; /* Adjusted width for smaller screens */
        max-width: 600px; /* Maximum width */
        box-sizing: border-box;
        background-color: transparent;
        box-shadow: none;
        margin: auto; /* Center the container horizontally */
    }
    
    .LoginForm {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    
    .InputBox {
        margin-bottom: 15px;
        display: flex;
        flex-direction: column;
        width: 100%; /* Ensure input boxes take full width */
    }
    
    .InputBox input {
        padding: 20px;
        border-radius: 8px;
        border: none;
        background-color: #fff;
        box-sizing: border-box;
        font-size: 1rem;
        max-width: 100%; /* Full width */
        color: black;
        font-weight: normal;
    }
    
    .InputBox button {
        padding: 10px 10px;
        border-radius: 8px;
        font-size: 2rem;
        border: none;
        color: white;
        font-weight: bold;
        cursor: pointer;
        width: 100%; /* Full width */
    }
    
    .QR {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 20px; /* Spacing above QR code */
    }
    
    .QR img {
        max-width: 100%;
        height: auto;
    }
    
    .QR p {
        color: #fff;
        font-size: 1rem;
        text-align: center;
        font-weight: normal;
        margin-top: 10px; /* Space between image and text */
    }
    
    .password-container {
        position: relative;
    }
    .password-container input {
        width: 100%;
        padding-right: 40px;
    }
    
    .toggle-password {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        cursor: pointer;
        width: 24px;
        height: 24px;
    }

    .InputBox button {
        width: 25rem;
        font-size: 1rem;
        text-align: center; /* Center the text inside input and button */
    }

    .InputBox input{
        width: 25rem;
        font-size: 1rem;
        text-align: left; /* Center the text inside input and button */
    }

    .AlreadyHave {
        text-align: center;
        display: flex;
        justify-content: center; /* Center the content horizontally */
        margin-top: 10px; /* Added margin for spacing */
    }

    .AlreadyHave p {
        color: #fff;
        font-size: 1rem;
        margin-right: 5px; /* Space between the text and the link */
    }

    .AlreadyHave a:hover {
        text-decoration: underline;
    }

    .forgot-password {
        display: flex;
        justify-content: center; /* Center the content horizontally */
        text-align: center;
        margin-top: 10px;
    }

    .forgot-password a:hover {
        text-decoration: underline;
    }
}

@media (max-width: 475px) {
    .Container {
        padding: 40px;
        border-radius: 8px;
        display: flex;
        flex-direction: column; /* Stack items in a column */
        align-items: center; /* Center items horizontally */
        justify-content: center; /* Center items vertically */
        width: 90%; /* Adjusted width for smaller screens */
        max-width: 600px; /* Maximum width */
        box-sizing: border-box;
        margin: auto; /* Center the container horizontally */
    }
    
    .LoginForm {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    
    .InputBox {
        margin-bottom: 15px;
        display: flex;
        flex-direction: column;
        width: 100%; /* Ensure input boxes take full width */
    }
    
    .InputBox input {
        padding: 20px;
        border-radius: 8px;
        border: none;
        background-color: #fff;
        box-sizing: border-box;
        font-size: 1rem;
        width: 100%; /* Full width */
        color: black;
        font-weight: normal;
    }
    
    .InputBox button {
        padding: 10px 10px;
        border-radius: 8px;
        font-size: 2rem;
        border: none;
        color: white;
        font-weight: bold;
        cursor: pointer;
        width: 100%; /* Full width */
    }
    
    .QR {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 20px; /* Spacing above QR code */
    }
    
    .QR img {
        max-width: 100%;
        height: auto;
    }
    
    .QR p {
        color: #fff;
        font-size: 1rem;
        text-align: center;
        font-weight: normal;
        margin-top: 10px; /* Space between image and text */
    }
    
    .password-container {
        position: relative;
    }
    .password-container input {
        width: 100%;
        padding-right: 40px;
    }
    
    .toggle-password {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        cursor: pointer;
        width: 24px;
        height: 24px;
    }
    
    .AlreadyHave {
        text-align: center;
        display: flex;
        justify-content: center; /* Center the content horizontally */
        margin-top: 10px; /* Added margin for spacing */
    }

    .AlreadyHave p {
        color: #fff;
        font-size: 1rem;
        margin-right: 5px; /* Space between the text and the link */
    }

    .AlreadyHave a {
        text-decoration: none;
    }

    .AlreadyHave a:hover {
        text-decoration: underline;
    }

    .forgot-password {
        display: flex;
        justify-content: center; /* Center the content horizontally */
        text-align: center;
        margin-top: 10px;
    }

    .forgot-password a:hover {
        text-decoration: underline;
    }
}
