@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #0F3845;
    padding: 20px;
}

.logo {
    width: 8%; 
    position: absolute;
    top: 190px; 
    left: 50%; 
    transform: translateX(-50%); 
}

.Login-box {
    width: 60%; 
    max-width: 400px; 
    min-height: 70vh; 
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-top: 20vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column; 
}

h2 {
    font-size: 2em;
    color: #81A9BB;
    text-align: center;
    margin-bottom: 20px;
}

h4 {
    font-size: 0.75em;
    color: black;
    text-align: center;
    font-weight: 200;
}

.input-box {
    position: relative;
    width: 90%; 
    margin: 30px 0;
    border-bottom: 2px solid #fff;
}

.input-box label {
    position: absolute;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    font-size: 1em;
    color: grey;
    pointer-events: none;
}

.input-box input:focus~label,
.input-box input:valid~label {
    top: 5px;
}

.input-box input {
    width: 100%;
    height: 50px;
    background: transparent;
    border: none;
    border-bottom: 2px solid;
    outline: none;
    font-size: 1em;
    color: black;
    padding: 0 35px 0 5px;
}

.input-box .icon {
    position: absolute;
    right: 8px;
    color: black;
    font-size: 1.2em;
    line-height: 57px;
}

button {
    width: 90%; 
    height: 40px;
    border: none;
    border-radius: 5px;
    outline: none;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    margin-bottom: 10px;
    transition: background 0.3s, border-color 0.3s, color 0.3s;
}


.login-button {
    background: #81A9BB;
    color: black;
}

.login-button:hover {
    background: #7199a9; 
}


.register-button {
    background: white; 
    color: #0F3845; 
    border: 2px solid #0F3845; 
}

.register-button:hover {
    background: #0F3845; 
    color: white; 
    border-color: white; 
}

@media only screen and (max-width: 600px) {
    .Login-box {
        width: 100%;
        border-radius: 0;
    }
}