* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "font";
}

@font-face {
  font-family: "font";
  src: url(/fonts/VAZIR-BOLD-FD-WOL.TTF);
}

body {
  font-family: sans-serif;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #ff9a9e, #fad0c4, #fad0c4);
  overflow-x: hidden;
}

.container {
  width: 100%;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* باکس ها */
.login-box,
.message-box {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  padding: 40px;
  border-radius: 25px;
  width: 100%;
  max-width: 450px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  transition: all 0.6s ease;
}

/* انیمیشن ورود پیام */
.message-box {
  opacity: 0;
  transform: translateY(30px);
}

.message-box.show {
  opacity: 1;
  transform: translateY(0);
}

/* انیمیشن خروج فرم */
.login-box.hide {
  opacity: 0;
  transform: translateY(-30px);
}

/* تیتر ها */
h1 {
  font-size: 26px;
  margin-bottom: 20px;
}

h2 {
  font-size: 22px;
  margin-bottom: 25px;
}

/* متن */
p {
  font-size: 17px;
  line-height: 1.9;
  margin-bottom: 15px;
  color: #444;
}

/* اینپوت */
input {
  width: 100%;
  padding: 14px;
  margin-bottom: 15px;
  border-radius: 12px;
  border: 1px solid #ddd;
  font-size: 15px;
  transition: 0.3s;
}

input:focus {
  border-color: #e75480;
  outline: none;
  box-shadow: 0 0 8px rgba(231, 84, 128, 0.3);
}

/* دکمه */
button {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 30px;
  background: linear-gradient(45deg, #e75480, #ff7eb3);
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(231, 84, 128, 0.4);
}

/* ارور */
.error {
  color: red;
  font-size: 14px;
  margin-top: 10px;
}

.hidden {
  display: none;
}

.final {
  font-weight: bold;
  color: #e75480;
  font-size: 19px;
}

.from {
  margin-top: 20px;
  font-weight: bold;
  opacity: 0.8;
}

/* 📱 موبایل */
@media (max-width: 500px) {
  .login-box,
  .message-box {
    padding: 25px;
    border-radius: 20px;
  }

  h1 {
    font-size: 20px;
  }

  h2 {
    font-size: 18px;
  }

  p {
    font-size: 15px;
  }

  button {
    font-size: 14px;
    padding: 12px;
  }
}
