@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #1e90ff, #ff1493);
    background-size: cover;
}

.container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-box {
    position: relative;
    max-width: 360px;
    padding: 40px;
    background: rgba(0, 0, 0, 0.8);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    text-align: center;
}

.login-box h2 {
    margin: 0 0 30px;
    padding: 0;
    color: #fff;
    text-transform: uppercase;
}

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

.user-box input {
    width: 100%;
    padding: 10px 0;
    font-size: 16px;
    color: #fff;
    margin-bottom: 30px;
    border: none;
    border-bottom: 1px solid #fff;
    outline: none;
    background: transparent;
}

.user-box label {
    position: absolute;
    top: 0;
    left: 0;
    padding: 10px 0;
    font-size: 16px;
    color: #fff;
    pointer-events: none;
    transition: 0.5s;
}

.user-box input:focus ~ label,
.user-box input:valid ~ label {
    top: -20px;
    left: 0;
    color: #ff1493;
    font-size: 12px;
}

.login-button {
    background: none;
    border: none;
    color: #fff;
    padding: 10px 20px;
    cursor: pointer;
    text-transform: uppercase;
    transition: 0.5s;
    font-size: 16px;
    letter-spacing: 1px;
}

.login-button:hover {
    background: #ff1493;
    color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 5px #ff1493, 0 0 25px #ff1493, 0 0 50px #ff1493, 0 0 100px #ff1493;
}

#message {
    margin-top: 20px;
    color: #fff;
}

/* Impedire al browser di cambiare lo sfondo quando riempie automaticamente */
.user-box input:-webkit-autofill,
.user-box input:-webkit-autofill:hover,
.user-box input:-webkit-autofill:focus,
.user-box input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px transparent inset !important;
    -webkit-text-fill-color: #fff !important;
    background-clip: text !important;
    border-bottom: 1px solid #fff !important;
}
