@font-face {
  font-family: "YekanBakhFaNum";
  src: url("assets/font/YekanBakhFaNum-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "YekanBakhFaNum";
  src: url("assets/font/YekanBakhFaNum-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "YekanBakhFaNum";
  src: url("assets/font/YekanBakhFaNum-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "YekanBakhFaNum";
  src: url("assets/font/YekanBakhFaNum-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "YekanBakhFaNum";
  src: url("assets/font/YekanBakhFaNum-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "YekanBakhFaNum";
  src: url("assets/font/YekanBakhFaNum-ExtraBlack.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  margin: 0;
  font-family: "YekanBakhFaNum", system-ui, tahoma, sans-serif;
  background: #f2f3f5;
}
.page {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 24px;
}
.card {
  width: 100%;
  max-width: 560px;
  background: #fff;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  text-align: center;
}
.logo {
  width: 96px;
  height: 96px;
  border-radius: 20px;
  display: block;
  margin: -64px auto 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.title {
  margin: 8px 0 6px;
  color: #1f7a2e;
  font-size: 28px;
  font-weight: 800;
}
.subtitle {
  margin: 0 auto 18px;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.9;
}
.form {
  display: grid;
  gap: 16px;
}
.field {
  display: block;
}
.field-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 2px 2px 8px;
  color: #374151;
  font-size: 14px;
  font-weight: 700;
  direction: rtl;
  gap: 8px;
}
.field-head svg {
  width: 18px;
  height: 18px;
  color: #6b7280;
}
.field input {
  width: 100%;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  font-size: 16px;
  outline: none;
  text-align: right;
  font-family: "YekanBakhFaNum";
}
.field input::placeholder {
  font-family: "YekanBakhFaNum", system-ui, tahoma, sans-serif;
  color: #9ca3af;
  font-size: 14px;
}
.field input:focus {
  border-color: #16a34a;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.1);
}

.submit {
  width: 100%;
  padding: 5px 10px;
  border: 0;
  border-radius: 8px;
  background: #16a34a;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: "YekanBakhFaNum", system-ui, tahoma, sans-serif;
}
.submit:hover {
  background: #15803d;
}
.footer {
  margin-top: 16px;
  color: #6b7280;
  font-size: 12px;
  text-align: center;
}
.hide {
  display: none;
}
.success {
  padding-top: 8px;
}
.success:not(.hide) {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.success button {
  background: #2468aee4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  width: fit-content;
  border: 0;
  border-radius: 12px;
  direction: rtl;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: "YekanBakhFaNum", system-ui, tahoma, sans-serif;
  margin: 12px auto 0;
}
.success button:hover {
  background: #2468aee4;
}
.success button a {
  color: #fff;
  text-decoration: none;
}
.success button a:hover {
  color: #fff;
  text-decoration: none;
}
.success button svg {
  width: 18px;
  height: 18px;
  color: #fff;
}
.success button img {
  width: 13px;
  height: 13px;
}
