@font-face{
    src: url(/fonts/Vazir.ttf);
    font-family: vazir;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Vazir;
}

body{
    display:flex ;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #c9f2d6;
}
.error-message {
    color: #dc3545;
    font-size: 0.8rem;
    display: block;
    font-weight: 500;
    text-align: center;
    direction: rtl;
}

.contents{
    position: relative;
    width: 850px;
    height: 550px;
    background: #f7fff4;
    border-radius: 30px;
    box-shadow: 0 0 30px rgba(0, 0, 0, .2);
}

.form-box{
    position: absolute;
    right: 0;
    width: 50%;
    height: 100%;
    background: #fff;
    display: flex;
    align-items: center;
    color: #333;
    text-align: center;
    padding: 40px;
    z-index: 1;
    border-top-left-radius: 150px;
    border-bottom-right-radius: 150px;

}

.form-box label{
    font-size: 15px;
}

.logo{
    width: 220px;
    transform: translateY(40px);
    
}

form{
    width: 100%;
    transform: translateY(-60px);
}
.contents h1{
    font-size: 30px;
    margin: -10px 0;
}

.input-box{
    position: relative;
    margin: 30px 0;
}

.input-box input{
    width: 100%;
    padding: 13px 50px 13px 52px;
    background: #eee;
    border-radius: 8px;
    border: none;
    outline: none;
    text-align: right;
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.input-box input::placeholder{
    color: #888;
    font-weight: 400;
}

.input-box i {
    position: absolute;
    right: 300px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #888;
}

.icon{
    transform: translateY(-25px)
}
.remember-me{
    margin: -10px 0 15px;
}
.forget-password {
    margin: -10px 0 15px;
}

.forget-password a {
    font-size: 14px;
    color: #333;
    text-decoration: none;
}

.forget-password a:hover {
    color: #1e8f4d;

}

.btn {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, #2e7d32, #1b5e20);
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .1);
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #fff;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.btn:hover{
    transform: scale(1.05);
}

.slider{
    position: absolute;
    width: 100%;
    height: 100%;
}

.slider-panel {
    position: absolute;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, #2e7d32, #1b5e20);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    border-top-left-radius: 31px;
    border-bottom-right-radius: 31px;
}

.slider-panel p{
    margin-bottom: 10px;
}

.slider-panel .btn{
    width: 160px;
    height: 46px;
    background: transparent;
    border: 2px solid #fff;
    box-shadow: none;
}

.box{
    
    transform: translateX(160px) translateY(-10px);
}

.rule{
    position: relative;
    top: 13px;
}

@media screen and (max-width: 650px) {
    .contents{
        height: calc(100vh - 40px);
        width: calc(45vh - 20px);
    }

    .form-box.login{
        width: 100%;
        height: 70%;
        border-radius:31px ;
    }

    .slider-panel{
        width: 100%;
        height: 30%;
        left: 0;
        bottom: -2px;
        border-radius:31px ;
    }

    .input-box i{
        right: 85%;
    }

}