body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background-color: #f7f8fc;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    box-sizing: border-box;
}

.login-box {
    background-color: #ffffff;
    padding: 40px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    text-align: center;
    transition: box-shadow 0.3s ease-in-out;
}

.login-box:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.login-box h2 {
    margin-bottom: 30px;
    color: #333333;
    font-size: 28px;
    font-weight: 600;
}

.user-box {
    position: relative;
    margin-bottom: 30px;
}

.user-box input {
    width: 100%;
    padding: 10px 10px 10px 0;
    font-size: 16px;
    color: #333;
    border: none;
    border-bottom: 2px solid #ccc;
    outline: none;
    background: transparent;
    transition: border-color 0.3s;
}

.user-box input:focus {
    border-bottom-color: #007bff;
}

.user-box label {
    position: absolute;
    top: 10px;
    left: 0;
    font-size: 16px;
    color: #aaa;
    pointer-events: none;
    transition: 0.3s;
}

.user-box input:focus ~ label,
.user-box input:valid ~ label {
    top: -20px;
    font-size: 12px;
    color: #007bff;
}

button {
    background-color: #007bff;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s, transform 0.3s;
}

button:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

@media (max-width: 400px) {
    .login-box {
        padding: 20px;
    }

    .login-box h2 {
        font-size: 24px;
    }

    .user-box input {
        padding: 8px 8px 8px 0;
    }

    button {
        padding: 10px 18px;
        font-size: 14px;
    }
}


/*
body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background-color: #f7f8fc;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    box-sizing: border-box;
}

.login-box {
    background-color: #ffffff;
    padding: 40px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    text-align: center;
    transition: box-shadow 0.3s ease-in-out;
}

.login-box:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.login-box h2 {
    margin-bottom: 30px;
    color: #333333;
    font-size: 28px;
    font-weight: 600;
}

.user-box {
    position: relative;
    margin-bottom: 30px;
}

.user-box input {
    width: 100%;
    padding: 10px 10px 10px 0;
    font-size: 16px;
    color: #333;
    border: none;
    border-bottom: 2px solid #ccc;
    outline: none;
    background: transparent;
    transition: border-color 0.3s;
}

.user-box input:focus {
    border-bottom-color: #007bff;
}

.user-box label {
    position: absolute;
    top: 10px;
    left: 0;
    font-size: 16px;
    color: #aaa;
    pointer-events: none;
    transition: 0.3s;
}

.user-box input:focus ~ label,
.user-box input:valid ~ label {
    top: -20px;
    font-size: 12px;
    color: #007bff;
}

button {
    background-color: #007bff;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s, transform 0.3s;
}

button:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

@media (max-width: 400px) {
    .login-box {
        padding: 20px;
    }

    .login-box h2 {
        font-size: 24px;
    }

    .user-box input {
        padding: 8px 8px 8px 0;
    }

    button {
        padding: 10px 18px;
        font-size: 14px;
    }
}
