@font-face {
  font-family: "AGMYekan";
  src: url("/static/fonts/woff2/IRANYekanXFaNum-Regular.woff2?v=agm-font-20261106-1") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "AGMYekan";
  src: url("/static/fonts/woff2/IRANYekanXFaNum-Bold.woff2?v=agm-font-20261106-1") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color: #172b4d;
  background: #f3f7fb;
  font-family: "AGMYekan", Tahoma, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.85;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.agm-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.agm-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 20px max(20px, calc((100% - 1180px) / 2));
  background: #fff;
  border-bottom: 1px solid #d9e3ef;
}

.agm-brand {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.agm-brand > div {
  max-width: 760px;
}

.agm-brand img,
.agm-brand .agm-logo {
  display: block;
  width: min(100%, 360px);
  height: auto;
  aspect-ratio: 1983 / 793;
  object-fit: contain;
  margin-inline: auto;
}

.agm-brand h1 {
  margin: 0;
  color: #103b68;
  font-size: clamp(1.3rem, 2vw, 2rem);
  line-height: 1.5;
}

.agm-brand p {
  margin: 3px 0 0;
  color: #52677e;
}

.member-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.member-card span {
  color: #52677e;
}

.agm-main {
  width: min(100%, 1216px);
  flex: 1 0 auto;
  margin: 28px auto;
  padding: 0 18px;
}

.hero-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 25px 30px;
  color: #fff;
  background: linear-gradient(120deg, #103b68, #176e83);
  border-radius: 20px;
  box-shadow: 0 12px 35px #153c5b22;
}

.hero-card h2 {
  margin: 5px 0;
  font-size: 1.5rem;
}

.hero-card p {
  margin: 0;
  color: #e2f2f5;
}

.eyebrow {
  color: #bfecf1;
  font-size: .9rem;
}

.countdown {
  min-width: 190px;
  padding: 10px;
  text-align: center;
  border: 1px solid #ffffff66;
  border-radius: 14px;
}

.countdown span,
.countdown strong {
  display: block;
}

.countdown strong {
  font-size: 1.2rem;
}

.agm-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 18px 0;
  scrollbar-width: thin;
}

.agm-tabs a {
  flex: 0 0 auto;
  padding: 8px 16px;
  color: #17476b;
  text-decoration: none;
  white-space: nowrap;
  font-weight: 700;
  background: #fff;
  border: 1px solid #dce6ef;
  border-radius: 999px;
}

.agm-tabs[role="tablist"] a[aria-selected="true"] {
  color: #fff;
  background: #103b68;
  border-color: #103b68;
}

.agm-tabs[role="tablist"] a[aria-selected="false"] {
  color: #17476b;
  background: #fff;
}

.agm-tabs[role="tablist"] a:focus-visible,
.panel-card[role="tabpanel"]:focus-visible {
  outline: 3px solid #d39521;
  outline-offset: 3px;
}

.panel-card {
  margin: 17px 0;
  padding: 22px 26px;
  background: #fff;
  border: 1px solid #e0e8f0;
  border-radius: 18px;
  box-shadow: 0 5px 20px #1e3b5a0a;
}

.panel-card[hidden] {
  display: none !important;
}

.panel-card h1,
.panel-card h2 {
  margin: 0 0 12px;
  color: #123d68;
  font-size: 1.4rem;
}

.panel-card h3 {
  color: #264d71;
  font-size: 1.1rem;
}

.panel-card p {
  margin: .35em 0 1em;
}

.login-card {
  width: min(100%, 720px);
  margin-inline: auto;
}

.login-guidance {
  margin: .7em 0 0;
  color: #52677e;
  font-size: .95rem;
}

.notice {
  padding: 12px 15px;
  color: #684d14;
  background: #fff8e8;
  border-right: 5px solid #d89b24;
  border-radius: 8px;
}

.muted,
.helptext {
  color: #687c90;
}

.agenda {
  white-space: normal;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  background: #087e8b;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
}

.button:hover {
  background: #076b75;
}

.button.secondary {
  color: #17476b;
  background: #eaf2f8;
  border-color: #cbd9e6;
}

.button.secondary:hover {
  background: #dceaf4;
}

.button:focus-visible,
.agm-tabs a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: 3px solid #d39521;
  outline-offset: 2px;
}

form p {
  margin: 12px 0;
}

label {
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  max-width: 620px;
  padding: 11px 12px;
  color: #162d43;
  font-family: inherit;
  background: #fff;
  border: 1px solid #a9bacb;
  border-radius: 8px;
}

input[type="file"] {
  padding: 9px;
}

input[type="checkbox"],
input[type="radio"] {
  width: auto;
  max-width: none;
  accent-color: #087e8b;
}

.errorlist {
  color: #9c2535;
}

.status-list {
  padding-right: 24px;
}

.status-list li {
  margin: 10px 0;
}

.answer {
  padding-right: 12px;
  border-right: 3px solid #087e8b;
}

.results {
  display: grid;
  gap: 10px;
}

.result-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  background: #edf5f7;
  border-radius: 8px;
}

.question-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 18px;
}

.topic-link {
  display: inline-block;
  padding: 7px 14px;
  color: #17476b;
  font-weight: 700;
  text-decoration: none;
  background: #f5f9fc;
  border: 1px solid #cbd9e6;
  border-radius: 999px;
}

.topic-link:hover {
  background: #eaf2f8;
}

.topic-link[aria-disabled="true"] {
  opacity: .72;
  cursor: default;
}

.messages {
  margin: 12px 0;
}

.message {
  padding: 10px;
  background: #e8f5ef;
  border-radius: 8px;
}

.agm-footer {
  flex: 0 0 auto;
  padding: 22px 16px;
  color: #5b6c7b;
  font-size: .95rem;
  line-height: 1.8;
  text-align: center;
  background: #fff;
  border-top: 1px solid #d9e3ef;
}

.agm-footer a {
  color: #103b68;
  font-weight: 700;
  text-decoration: underline;
}

.verify-wrap {
  width: min(100%, 650px);
  margin: 8vh auto;
  padding: 0 16px;
}

@media (max-width: 760px) {
  :root {
    font-size: 17px;
  }

  .agm-header {
    align-items: stretch;
    flex-direction: column;
    padding: 18px;
  }

  .agm-brand .agm-logo {
    width: min(100%, 300px);
  }

  .member-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-card {
    align-items: stretch;
    flex-direction: column;
    padding: 20px;
  }

  .countdown {
    min-width: 0;
  }

  .panel-card {
    padding: 18px;
  }

  .agm-tabs {
    margin-inline: -8px;
    padding-inline: 8px;
  }
}

/* Separate official-member and applicant entry paths. */
.agm-login-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:24px 0;direction:rtl}.agm-login-columns .login-card{margin:0;min-width:0}.agm-login-columns .member-login-card{border-top:4px solid #103b68}.agm-login-columns .applicant-login-card{border-top:4px solid #087e8b}.agm-login-columns .eyebrow{display:inline-block;color:#087e8b;font-weight:700;margin-bottom:6px}@media(max-width:760px){.agm-login-columns{grid-template-columns:1fr}}
