:root {
  --green: #01c56b;
  --green-soft: #41d490;
  --text: #8a8a8a;
  --line: #d0d0d0;
  --field-line: #e5e7eb;
  --panel: #f5f5f5;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: IRANSansX, IRANSans, Tahoma, Arial, sans-serif;
}

.site-header {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4.4%;
  direction: rtl;
}

.pishro-logo { width: 128px; height: auto; }
.finroad-logo { width: 118px; height: 29px; object-fit: contain; }

.page-shell {
  min-height: calc(100vh - 72px);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  padding: 36px 20px 32px;
  display: grid;
  place-items: start center;
  background: #fff url("https://www.figma.com/api/mcp/asset/3d362f20-d6a7-4b5f-82cc-138bd7546ad9/f5099.svg") center / cover no-repeat;
}

.login-card {
  width: min(557px, 100%);
  min-height: 439px;
  padding: 23px 63px 28px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: center;
  background: rgba(255, 255, 255, .96) url("https://www.figma.com/api/mcp/asset/3d362f20-d6a7-4b5f-82cc-138bd7546ad9/941b6.svg") center / cover no-repeat;
}

h1 { margin: 0 0 10px; font-size: 20px; line-height: 45px; font-weight: 800; }
.login-hint { margin: 0 0 12px; font-size: 12px; line-height: 24px; animation: hint-color 2s linear infinite; }
.login-hint a { color: inherit; }
@keyframes hint-color { from, to { color: #8a8a8a; } }

.login-form { width: 320px; max-width: 100%; margin: 0 auto; }
.field { height: 36px; margin-bottom: 9px; border: 1px solid var(--field-line); border-radius: 8px; display: flex; align-items: center; padding: 0 10px; background: #fff; }
.field img { width: 16px; height: 16px; flex: 0 0 16px; object-fit: contain; opacity: .85; }
.field input { min-width: 0; width: 100%; height: 34px; border: 0; outline: 0; padding: 0 8px; color: #555; background: transparent; font: inherit; font-size: 12px; text-align: right; }
.field input::placeholder { color: #b1b1b1; opacity: 1; }
.field:focus-within { border-color: var(--green-soft); box-shadow: 0 0 0 2px rgba(65, 212, 144, .12); }

.captcha-row { display: grid; grid-template-columns: 1fr 80px; gap: 1px; direction: rtl;}
.captcha-field { margin: 0; }
.captcha-image { width: 120px; height: 36px; border-radius: 7px; object-fit: cover; }

.primary-button, .register-button, .outline-button { font: inherit; font-size: 12px; text-decoration: none; cursor: pointer; border-radius: 8px; transition: .18s ease; }
.primary-button { width: 100%; height: 36px; margin-top: 10px; border: 1px solid transparent; color: #fff; background: var(--green); }
.primary-button:hover, .register-button:hover { filter: brightness(.94); transform: translateY(-1px); }
.secondary-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 9px; }
.outline-button { min-height: 28px; padding: 6px 8px; border: 1px solid var(--green-soft); color: var(--green-soft); background: #fff; white-space: nowrap; }
.outline-button:hover { color: #fff; background: var(--green-soft); }

.register-box { margin-top: 25px; padding: 9px 20px 14px; border-radius: 15px; background: var(--panel); }
.register-box h2 { margin: 0; font-size: 16px; line-height: 30px; }
.register-box p { margin: 0 auto 10px; font-size: 12px; line-height: 25px; }
.register-button { display: inline-block; padding: 7px 12px; color: #fff; background: var(--green); }

@media (max-width: 620px) {
  .site-header { height: 64px; padding: 0 20px; }
  .pishro-logo { width: 108px; }
  .finroad-logo { width: 96px; }
  .page-shell { min-height: calc(100vh - 64px); padding: 24px 14px; }
  .login-card { padding: 22px 18px 24px; }
  .secondary-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
