* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f1f1f1;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

form {
    width: 500px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    padding: 40px;
    position: relative;
    overflow: hidden;
}

form::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-color: #0040ff;
    transform: rotate(45deg);
    z-index: -1;
    animation: show 1s ease-in-out forwards;
}

h2 {
    font-size: 2em;
    text-align: center;
    margin-bottom: 30px;
}

.inputBox {
    position: relative;
    margin-bottom: 30px;
}

input {
    width: 100%;
    padding: 10px 0;
    font-size: 1em;
    border: none;
    border-bottom: 2px solid #ccc;
    outline: none;
    background-color: transparent;
}

label {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 1em;
    padding: 10px 0;
    pointer-events: none;
    transition: 0.5s;
}

input:focus+label,
input:valid+label {
    top: -20px;
    font-size: 0.8em;
    color: #0040ff;
}
.warning {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ff0000;
}

.button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;

}

input[type="submit"], .register, .login {
    width: 200px;
    background-color: #0040ff;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.5s;
    text-decoration: none;
    text-align: center;

}

input[type="submit"]:hover, .register:hover, .login:hover {
    background-color: #fff;
    color: #0040ff;
}

@keyframes show {
    0% {
        transform: rotate(45deg) scale(0);
    }

    50% {
        transform: rotate(45deg) scale(1.1);
    }

    100% {
        transform: rotate(45deg) scale(1);
    }
}