* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Tahoma, Arial, sans-serif;
  background: linear-gradient(180deg, #f8f5f2 0%, #ffffff 100%);
  direction: rtl;
  color: #222;
}

.wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.container {
  width: 100%;
  max-width: 560px;
  background: #ffffff;
  padding: 24px;
  border-radius: 22px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  border: 1px solid #f0e7de;
}

.brand {
  text-align: center;
  margin-bottom: 22px;
}

.brand h1 {
  margin: 0;
  font-size: 30px;
  color: #1f1a17;
}

.brand p {
  margin: 8px 0 0;
  color: #7a6d62;
  font-size: 15px;
}

.badge {
  display: inline-block;
  background: #f6ede5;
  color: #8a5a33;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  margin-bottom: 12px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: #2f2925;
  font-size: 15px;
}

input, select, textarea {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid #e7ddd3;
  border-radius: 14px;
  margin-bottom: 16px;
  font-size: 16px;
  background: #fffdfb;
  transition: 0.2s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #c89d74;
  box-shadow: 0 0 0 4px rgba(200,157,116,0.12);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

button {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #2d221c 0%, #8a5a33 100%);
  color: white;
  cursor: pointer;
  font-size: 17px;
  font-weight: 700;
  transition: 0.2s;
}

button:hover {
  transform: translateY(-1px);
  opacity: 0.97;
}

.success {
  background: #e8f7ec;
  color: #176b2c;
  padding: 14px;
  border-radius: 12px;
  margin-bottom: 16px;
  border: 1px solid #cdebd5;
}

.error {
  background: #fdecec;
  color: #a12626;
  padding: 14px;
  border-radius: 12px;
  margin-bottom: 16px;
  border: 1px solid #f4caca;
}

.hidden {
  display: none;
}

@media (max-width: 600px) {
  .wrapper {
    padding: 10px;
    align-items: flex-start;
  }

  .container {
    margin-top: 12px;
    padding: 18px;
    border-radius: 18px;
  }

  .brand h1 {
    font-size: 25px;
  }
}

.btn-link {
  display: block;
  width: 100%;
  padding: 15px;
  border-radius: 14px;
  background: #f6ede5;
  color: #6f4c31;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  box-sizing: border-box;
}