* {
    box-sizing: border-box;
    font-family: 'Vazirmatn';
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: var(--color-2);
}

.container{
    position: relative;
    max-width: 100%;
    min-height: 100vh;
    background: var(--color-2);
    border-radius: 30px;
    box-shadow: 0 0 30px rgba(0, 0, 0, .2) ;
    padding: 0px;
}

.form-box{
    position: absolute;
    right: 0;
    display: flex;
    width: 50%;
    height: 100%;
    background: var(--color-2);
    align-items: center;
    color: var(--color-2);
    text-align: center;
    padding: 40px;
    z-index: 1;
}

form{
    width: 100%;
}

.container h1 {
    font-size: 36px;
    margin: -10px 0;
}

.input-box {
    position: relative;
    margin: 30px 0;
}

.input-box input {
    width: 100%;
    padding: 13px 50px 13px 20px;
    background: var(--color-2);
    border-radius: 8px;
    border: 1px double var(--color-5);
    outline: none;
    font-size: 16px;
    color: var(--text);
    font-weight: 500;
    text-align: end;
}

.input-box input::placeholder {
    color: var(--text);
    opacity: 0.5;
    font-weight: 400;
}

.input-box i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: var(--color-4);
}

.submit-btn{
    width: 100%;
    height: 48px;
    background: var(--text);
    color: var(--color-2);
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
}

.btn:hover{
    background: var(--color-6);
    color: var(--text);
}

.container p{
    font-size: 14.5px;
    margin: 15px 0;
    color: var(--text);
}

.social-icons a{
    display: inline-flex;
    padding: 10px;
    border-radius: 8px;
    font-size: 25px;
    color: var(--text);
    text-decoration: none;
    margin: 0 8px;
}

.toggle-box{
    position: absolute;
    width: 100%;
    height: 100%;
}

.toggle-box::before{
    content: '';
    position: absolute;
    left: -250%;
    width: 300%;
    height: 100%;
    background: var(--color-4);
    border-radius: 150px;
    z-index: 2;
    transition: 1.8s ease-in-out;
}

.toggle-panel {
    position: absolute;
    width: 50%;
    height: 100%;
    color: var(--color-2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.toggle-panel p {
    margin-bottom: 20px;
    color: var(--color-2);
    text-align: start;
    padding-left: 10px;
    max-width: 100%;

}

.toggle-panel .panel-btn{
    max-width: 100%;
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.toggle-panel .btn{
    width: 140px;
    height: fit-content;
    background: var(--color-1);
    box-shadow: none;
    direction: rtl;
}

.toggle-panel .btn:hover{
    background: var(--color-5);
    color: var(--color-2);
}

/* Hide form smoothly when submitted */
.form-box.hide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

/* Make toggle panel take full width after submit */
.toggle-box.show::before {
    left: 0;
    width: 100%;
    border-radius: 0;
}

/* Center toggle panel text in full width */
.toggle-box.show .toggle-panel {
    width: 100%;
    text-align: center;
    transition: width 0.8s ease;
}

@media screen and (max-width: 750px) {
    .container{
        height: calc(100vh - 40px);
    }

    .form-box{
        bottom: 0;
        width: 100%;
        height: 70%;
    }

    .toggle-box::before {
        left: 0;
        top: -270%;
        width: 100%;
        height: 300%;
    }

    .toggle-box.show::before{
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
    }

    .toggle-panel{
        width: 100%;
        height: 30%;
        transition: 1s ease-in-out;
        padding: 10vh;
    }

    .toggle-panel h1{
        width: 100%;
        text-align: center;
        padding: 4vh;
    }
    .toggle-panel p{
        width: 100%;
        padding: 0vh;
    }

    .toggle-box.show .toggle-panel{
        width: 100%;
        height: 100%;
    }
}
