body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #435165;
    font-family: "Montserrat", sans-serif;
	font-optical-sizing: auto;
	font-weight: 400;
	font-style: normal;
}

.login {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    width: 90%; /* Default width on small screens */
    max-width: 400px; /* Max width for larger screens */
}

* {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "segoe ui", roboto, oxygen, ubuntu, cantarell, "fira sans", "droid sans", "helvetica neue", Arial, sans-serif;
    font-size: 16px;
}
.login {
    width: 400px;
    background-color: #ffffff;
    box-shadow: 0 0 9px 0 rgba(0, 0, 0, 0.3);
    margin: 100px auto;
}
.login-head, .register {
    display: flex;
    border-bottom: 1px solid #dee0e4;
    width: 100%;
    align-items: center;
    justify-content: center;
    padding-bottom: 20px;
}
.login-head img{
    display:flex;
    max-height:70px;
    max-width: 100%;
}
.login h1 {
    display: flex;
    color: #5b6574;
    font-size: 24px;
    padding: 20px;
}
.login form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 20px;
}
.login form label {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: #3274d6;
    color: #ffffff;
}
.login form input[type="password"], .login form input[type="text"], .login form input[type="email"] {
    height: 50px;
    border: 1px solid #dee0e4;
    margin-bottom: 20px;
    padding: 0 15px;
}
.login form input[type="submit"] {
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    background-color: #3274d6;
    border: 0;
    cursor: pointer;
    font-weight: bold;
    color: #ffffff;
    transition: background-color 0.2s;
}
.login form input[type="submit"]:hover {
    background-color: #2868c7;
    transition: background-color 0.2s;
}

.user, .password, .email {
    display:inline-flex;
    width: min(100%, 300px);
    justify-content: center;
}
.links {
    display: flex;
    justify-content: space-between;
}

.links a:hover,
.links a:hover i {
    color: #2868c7;
}

.links * {
    color: #333333;
    margin-right: 5px;
    text-decoration: none;
}

@media (max-width: 600px) {
    .login {
        width: 100%; /* Full width on mobile devices */
        margin: 0 10px;
    }
    .login form input[type="password"], .login form input[type="text"], .login form input[type="email"] {
        width:min(270px, 100%);
    }
    body {
        margin: 20px;
        height: 100%;

    }

}

@media (min-width: 601px) and (max-width: 1024px) {
    .login {
        width: 70%;
    }
}

@media (min-width: 1025px) {
    .login {
        width: 400px;
    }
}