*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    background: linear-gradient(135deg, #e8f5f1, #f8fffd);

}
.login-box a{
    text-decoration: none;
    color: #1E6F5C;
}
.login-box a:hover{
    text-decoration: underline;
}
.wrapper{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    /*background-color: rgba(0,0,0,.2);*/
}
.login-box{
    position: relative;
    width: 450px;
    backdrop-filter: blur(25px);
    border: 2px solid #1E6F5C;
    border-radius: 15px;
    padding: 7.5em 2.5em 4em 2.5em;
    color: #1E6F5C;
    box-shadow: 0 0 10px 2px rgba(0, 0, 0, 0.3);
}
.login-header{
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1E6F5C;
    width: 140px;
    height: 60px;
    border-radius: 0 0 20px 20px;
}
.login-header span{
    color: white;
    font-size: 20px;
}
.login-header::before{
    content: "";
    position: absolute;
    top: 0;
    left: -30px;
    width: 30px;
    height: 30px;
    border-top-right-radius: 60%;
    background-color: transparent;
    box-shadow: 15px 0 0 0 #1E6F5C;
}
.login-header::after{
    content: "";
    position: absolute;
    top: 0;
    right: -30px;
    width: 30px;
    height: 30px;
    border-top-left-radius: 60%;
    background-color: transparent;
    box-shadow: -15px 0 0 0 #1E6F5C;
}
.input-box{
    position: relative;
    display: flex;
    flex-direction: column;
    margin: 20px 0;
}
.input-field{
    width: 100%;
    height: 55px;
    font-size: 16px;
    background-color: transparent;
    color: #1E6F5C;
    padding-inline: 20px 50px;
    border: 1px solid #1E6F5C;
    border-radius: 30px;
    outline: none;
}
#user{
    margin-bottom: 10px;
}
.label{
    position: absolute;
    top: 15px;
    right: 20px;
    transition: .2s;
}
.input-field:focus ~ .label,
.input-field:valid ~ .label{
    position: absolute;
    top: -10px;
    right: 20px;
    font-size: 14px;
    background-color: #1E6F5C;
    border-radius: 30px;
    color: white;
    padding: 0 10px;
}
.input-box .icon{
    position: absolute;
    top: 14px;
    left: 25px;
    font-size: 20px;
}
.remember-forgot{
    display: flex;
    justify-content: space-between;
    font-size: 15px;
}
.input-submit{
    width: 100%;
    height: 50px;
    background-color: #1E6F5C;
    font-size: 16px;
    font-weight: 500;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    color: white;
    transition: .3s;
}
.register{
    text-align: center;
}
.register a{
    font-weight: 500;
}
@media (max-width: 564px) {
    .wrapper{
        padding: 20px;
    }
    .login-box{
        padding: 7.5em 1.5em 4em 1.5em;
    }
}



 /* کانتینر پیام */
  .messages {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50px;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
  }

  /* استایل پیام‌ها */
  .alert {
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    direction: rtl;
    text-align: right;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
    opacity: 1;
    transition: opacity 0.5s ease;
  }

  .alert-success {
    background-color: #eafaf1;
    color: #256d37;
    border: 1px solid #b9e3c5;
  }

  .alert-error, .alert-danger {
    background-color: #fdecec;
    color: #a93a3a;
    border: 1px solid #f2b1b1;
  }

  .alert-info {
    background-color: #e9f2ff;
    color: #245c9d;
    border: 1px solid #b7d5ff;
  }

  .alert-warning {
    background-color: #fff8e5;
    color: #7a6400;
    border: 1px solid #ffe293;
  }

  /* fade-out کلاس */
  .fade-out {
    opacity: 0;
  }
