

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 90vw;
    min-height: 100vh;
    background: var(--background);
    background-image: var(--background-img);
    background-size: cover;
}


.content{
    position: relative;
    width: 850px;
    height: 550px;
    border-radius: 30px;
    box-shadow: 0 0 30px rgba(0, 0, 0, .2);
    overflow: hidden;
}


.form {
    position: absolute;
    right: 0;
    width: 50%;
    height: 100%;
    background: var(--color-scheme-1);
    display: flex;
    align-items: center;
    color: var(--text-color-1);
    text-align: center;
    padding: 40px;
    z-index: 1;
    transition: .4s ease-in-out 0.5s, visibility 0s .3s;
}
form {
    width: 100%;
}
.toggle-panel {
    position: absolute;
    width: 50%;
    height: 100%;
    color: var(--text-color-1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
    gap: 20px;
    transition: 0.6s ease-in-out;
}


.register-form {
    visibility: hidden;
}
.login-form {
    visibility: visible;
}
.forgot-form {
    visibility: hidden;
}


.toggle-panel.toggle-left {
    visibility: visible;
}
.toggle-panel.toggle-forgot {
    visibility: hidden;
}


.logo {
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    margin: -30px 0 20px; 
}
.logo {
    width: 40vw;
    height: 40vw;
    max-width: 180px;
    max-height: 180px;
    min-width: 100px;
    min-height: 100px;
    background: var(--logo-img) no-repeat center center;
    background-size: cover;
    border-radius: 50%;
}


.btn {
    width: 100%;
    height: 48px;
    background: var(--button-color-2);
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .1);
    border: none;
    cursor: pointer;
    color: var(--button-text-1);
    font-weight: bold;
    font-size: 20px;
}
.bts {
    width: 38%;
    height: 48px;
    background: var(--button-color-2);
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .1);
    border: none;
    cursor: pointer;
    color: var(--button-text-1);
    font-weight: bold;
}
.sign-in:hover, .sign-up:hover, .change:hover, .send:hover, .confirm:hover {
    background: var(--button-text-1);
    color: var(--button-color-2);
}
.toggle-panel .btn:hover{
    background: var(--color-scheme-1) !important;
    color: var(--button-color-2) !important;
    border: none;
}
.toggle-panel .btn {
    color: var(--button-text-1) !important;
    background: var(--button-color-2) !important;
    width: 160px;
    height: 46px;
    background: transparent;
    border: 2px solid white;
    box-shadow: none;
}


.fr {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    position: relative;
    margin: 30px 0;
    white-space: wrap;

}
.fr label {
    position: absolute;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    font-size: 16px;
    color:#262626;
    padding: 0 5px;
    pointer-events: none;
    transition: .5s;
    text-align: left;
    white-space: wrap;
}
.fr input {
    width: 60%;
    padding: 13px 10px 13px 10px;
    background: white;
    border-radius: 8px;
    border: none;
    outline: none;
}
.inputs {
    position: relative;
    margin: 30px 0;
}
.inputs label {
    position: absolute;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    font-size: 16px;
    color:#262626;
    padding: 0 5px;
    pointer-events: none;
    transition: .5s;
    text-align: left;
}
.inputs input {
    width: 100%;
    padding: 13px 50px 13px 20px;
    background: white;
    border-radius: 8px;
    border: none;
    outline: none;
}
.inputs input:focus~label, .inputs label.has-value, .fr input:focus~label, .fr label.has-value{
    top: 0;
    font-size: 12px;
    background: white;
    border-radius: 20px;
}
.form h1{
    font-size: 36px;
    margin: -10px 0;
}
.toggle h1{
    font-size: 36px;
    display: flex;
    text-align: center;
}
.toggle-panel p {
    margin:20px 20px;
    white-space: wrap;
    text-align: center;
    font-size: 20px;
}

#error-message {
    color: var(--text-color-1);
    font-weight: bold;
    font-size: 15px;
    display: block;
    margin-bottom: 10px
}


.add-feature {
    margin: -15px 0 20px ;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    white-space: nowrap;
    align-items: center;
    text-align: left;
    gap: 15px;
}
.forgot-pass a, .toggle-panel a {
    font-size: 16px;
    color: var(--text-color-1);
    text-decoration: none;
}
.show-password {
    font-size: 16px;
    color: var(--text-color-1);
    white-space: nowrap;
}


.toggle {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--color-scheme-1);
}
.toggle::before {
    content: '';
    position: absolute;
    left: -250%;
    width: 300%;
    height: 100%;
    background: var(--color-scheme-2);
    border-radius: 50px;
    z-index: 2;
    transition: 1s ease-in-out;
}
.content.active .form {
    right: 50%;
}
.content.active .register-form {
    visibility: visible;
}
.content.active .toggle::before {
    left: 50%;
}
.toggle-panel.toggle-left{
    left: 0;
}
.content.active .toggle-panel.toggle-left {
    left: -50%;
    transition-delay: 0.2s;
}
.toggle-panel.toggle-right, .toggle-panel.toggle-forgot{
    right: -50%;
}
.content.active .toggle-panel.toggle-right, .content.active .toggle-panel.toggle-forgot {
    right: 0;
    transition-delay: 0.2s;
}
.content.forgot-active .toggle-panel.toggle-right {
    visibility: hidden;
    opacity: 0;
    transition: none; 
}




@media (max-width: 425px) {
    h1 {
        font-size: 1.5rem !important; 
        margin: 0.5rem 0 !important; 
        text-align: center;
    }

    .form.forgot-form {
        padding: 1rem;
    }

    .h1-title {
        font-size: 25px;
    }

    .btn.sign-up {
        font-size: 10px;
        width: 90% !important;
    }

    .toggle-panel button {
        width: 90% !important;
        margin: 10px;
    }

    .forgot-form input[type="text"],
    .forgot-form input[type="email"],
    .forgot-form input[type="password"] {
        display: block;
    }
}
