@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;700&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  min-height: 100vh;
}

body {
  font-family: 'Shabnam', sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-image: url('/img/sign-up-back.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  /* حذف اسکرول اضافی در wrapper */
  padding: 1rem;
  box-sizing: border-box;
}

.page-wrapper {
  flex: 1;
  max-width: 600px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 1rem;
  box-sizing: border-box;
}

.container {
  width: 100%;
  text-align: center;
}

.top-image {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  margin-bottom: 1px;
  text-align: center;
}

.top-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: inline-block;
}

.login-box {
  background: linear-gradient(-160deg, #18233d 0%, #032a79 100%);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: #161735 0px 0px 25px;
  width: 100%;
  max-width: 600px;
  text-align: center;
  transition: 0.3s ease;
}

.login-box h2 {
  margin-bottom: 1rem;
  font-weight: bold;
  font-size: 1.4rem;
  color: #ffffff;
}

.login-box h3 {
  margin-bottom: 1.2rem;
  font-size: 0.9rem;
  color: #afafaf;
}

input[type="text"] {
  width: 100%;
  padding: 14px 12px;
  margin: 10px 0;
  border: 1px solid #ffffff;
  border-radius: 15px;
  background-color: #D9DFED;
  font-size: 14px;
  outline: none;
  transition: 0.3s ease;
  direction: ltr;
  text-align: left;
  font-family: 'Shabnam', sans-serif;
  font-weight: bold;
}

input::placeholder {
  direction: ltr;
  text-align: left;
  font-family: 'Shabnam', sans-serif;
}

input:focus {
  border-color: #000000;
  background-color: #e4e9fb;
}

.input-error {
  border: 2px solid red !important;
}

.error-message {
  color: red;
  font-size: 0.9rem;
  margin-top: 4px;
}

button {
  width: 30%;
  padding: 12px;
  margin-top: 20px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  border: none;
  border-radius: 15px;
  color: #fff;
  font-weight: bold;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  transition: opacity 0.3s ease;
  font-family: 'Shabnam', sans-serif;
}

button:hover {
  opacity: 0.5;
}

.separator {
  border: none;
  height: 1px;
  background-color: #ccc;
  margin: 20px 0;
  opacity: 0.5;
}

.link {
  margin-top: 1rem;
  font-size: 13px;
  color: #ffffff;
}

.link a {
  color: #4660ff;
  text-decoration: none;
  font-weight: bold;
  transition: 0.2s ease;
}

.link a:hover {
  text-decoration: underline;
}

.footer {
  width: 100%;
  padding: 1rem 0.5rem;
  text-align: center;
  font-size: 1rem;
  color: #000;
  font-family: 'Shabnam', sans-serif;
  user-select: none;
  box-sizing: border-box;
  margin: 0;
  flex-shrink: 0;
}

@media screen and (max-width: 768px) {
  .login-box {
    padding: 1.5rem;
    border-radius: 12px;
  }

  .login-box h2 {
    font-size: 1.2rem;
  }

  .login-box h3 {
    font-size: 0.85rem;
  }

  button {
    font-size: 14px;
  }
}

@media screen and (max-width: 480px) {
  .login-box {
    padding: 1.2rem;
    border-radius: 10px;
  }

  .login-box h2 {
    font-size: 1.1rem;
  }

  .login-box h3 {
    font-size: 0.8rem;
  }

  input,
  button {
    font-size: 13px;
  }

  .footer {
    display: none;
  }
}