body {
    background: linear-gradient(to right, #2d336b, #7886c7); 
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh; 
    margin: 0; 
    padding: 0;
    overflow: hidden;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 450px;
    padding: 10px;
    box-sizing: border-box;
    margin: auto;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 100%; 
    background-color: #A9B5DF; 
    padding: 1.5rem; 
    border-radius: 20px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
}

.title {
    font-size: 1.75rem;
    color: #2D336B; 
    font-weight: 600;
    letter-spacing: -1px;
    position: relative;
    display: flex;
    align-items: center;
    padding-left: 30px;
}

.title::before, .title::after {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    border-radius: 50%;
    left: 0px;
    background-color: #2D336B;
}

.title::before {
    width: 18px;
    height: 18px;
    background-color: #2D336B;
}

.title::after {
    width: 18px;
    height: 18px;
    animation: pulse 1s linear infinite;
}

@keyframes pulse {
    from {
        transform: scale(0.9);
        opacity: 1;
    }
    to {
        transform: scale(1.8);
        opacity: 0;
    }
}

.message, .signin {
    color: rgba(88, 87, 87, 0.822);
    font-size: 14px;
}

.signin {
    text-align: center;
}

.signin a {
    color:  #2D336B;
}

.signin a:hover {
    text-decoration: underline royalblue;
}

.form label {
    position: relative;
}

.form label .input {
    width: 100%;
    padding: 10px 10px 20px 10px;
    outline: 0;
    border: 1px solid rgba(105, 105, 105, 0.397);
    border-radius: 10px;
    box-sizing: border-box;
}

.form label .input + span {
    position: absolute;
    left: 10px;
    top: 15px;
    color: grey;
    font-size: 0.9em;
    cursor: text;
    transition: 0.3s ease;
}

.form label .input:placeholder-shown + span {
    top: 15px;
    font-size: 0.9em;
}

.form label .input:focus + span, .form label .input:not(:placeholder-shown) + span {
    top: 30px;
    font-size: 0.7em;
    font-weight: 600;
}

.form label .input:valid + span {
    color: green;
}

.submit {
    border: none;
    outline: none;
    background-color: #2D336B;
    padding: 10px;
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    transform: .3s ease;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
}

.submit:hover {
    background-color: #7886C7; 
}

.text-danger {
    font-size: 0.8em;
    margin-top: 5px;
}

.input#otp {
    width: 179%;
}

@media (max-width: 768px) {
    .form {
        padding: 1.5rem;
    }

    .title {
        font-size: 1.5rem;
    }

    .submit {
        font-size: 0.9rem;
    }
    .input#otp {
        width: 133%;
    }
}

@media (max-width: 480px) {
    .form {
        padding: 1rem;
        max-width: 90%;
    }

    .title {
        font-size: 1.25rem;
    }

    .submit {
        font-size: 0.8rem;
    }
    .input#otp {
        width: 116%;
    }
}   