@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #c51c05;
}

.container {
    position: relative;
    max-width: 430px;
    width: 100%;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    margin: 0 20px;
}

.container .forms {
    display: flex;
    align-items: center;
    height: 440px;
    width: 100%;
    transition: height 0.2s ease;
}

.container .form {
    width: 100%;
    border-radius: 20px;
    padding: 30px;
    background-color: #fff;
    transition: margin-left 0.18s ease;
}

.container.active .login {
    margin-left: -50%;
    opacity: 0;
    transition: margin-left 0.18s ease, opacity 0.15s ease;
}

.container .signup {
    opacity: 0;
    transition: opacity 0.09s ease;
}

.container.active .signup {
    opacity: 1;
    transition: opacity 0.2s ease;
}

.container.active .forms {
    height: 600px;
}

.container .form .text {
    position: relative;
    font-size: 17px;
    font-weight: 400;
}

.form .text::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 20px;
    background-color: #c51c05;
    border-radius: 25px;
}

.container .form .title {
    position: relative;
    font-size: 27px;
    font-weight: 600;
}

.form .title::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 30px;
    background-color: #c51c05;
    border-radius: 25px;
}


.form .input-field {
    position: relative;
    height: 50px;
    width: 100%;
    margin-top: 30px;
}

.input-field select {
    position: absolute;
    color: #747474;
    height: 100%;
    width: 100%;
    padding: 0 35px;
    border: none;
    outline: none;
    font-size: 16px;
    border-bottom: 2px solid #ccc;
    border-top: none;
    transition: all 0.2s ease;
}

.textarea::-webkit-scrollbar, /* Selettore per Chrome, Safari e Opera */
.textarea::-moz-scrollbar, /* Selettore per Firefox */
.textarea::-ms-scrollbar { /* Selettore per IE e Edge */
    display: none; /* Nasconde la scrollbar */
}

.input-field textarea {
    position: absolute;
    width: 100%; /* Adjust the width as per the padding and icons inside the field */
    padding: 0 35px;
    resize: none;
    border: none;
    outline: none;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;

    width: 100%;
    font-size: 16px;
    border-bottom: 2px solid #ccc;
    border-top: none;
    transition: all 0.2s ease;
    resize: vertical; /* Permette all'utente di cambiare l'altezza della textarea */
}

.input-field textarea:is(:focus, :valid) {
    border-bottom-color: #c51c05;
}

.input-field textarea:is(:focus, :valid)~i {
    color: #c51c05;
}


.input-field input {
    position: absolute;
    height: 100%;
    width: 100%;
    padding: 0 35px;
    border: none;
    outline: none;
    font-size: 16px;
    border-bottom: 2px solid #ccc;
    border-top: none;
    transition: all 0.2s ease;
}

.input-field input:is(:focus, :valid) {
    border-bottom-color: #c51c05;
}

.input-field i {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 23px;
    transition: all 0.2s ease;
}

.input-field input:is(:focus, :valid)~i {
    color: #c51c05;
}

.input-field i.icon {
    left: 0;
}

.input-field i.showHidePw {
    right: 0;
    cursor: pointer;
    padding: 10px;
}

.form .checkbox-text {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
}

.checkbox-text .checkbox-content {
    display: flex;
    align-items: center;
}

.checkbox-content input {
    margin: 0 8px -2px 4px;
}

.form .text {
    color: #940000;
    font-size: 14px;
}

.form a.text {
    color: #c51c05;
    text-decoration: none;
}

.form a:hover {
    text-decoration: underline;
}

.form .button {
    margin-top: 35px;
}

.form .button input {
    border: none;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
    border-radius: 6px;
    background-color: #c51c05;
    cursor: pointer;
    transition: all 0.3s ease;
}

.button input:hover {
    background-color: #910000;
}

.form .login-signup {
    margin-top: 30px;
    text-align: center;
}