/* Vazirmatn — place the font files in assets/fonts/ */
@font-face {
  font-family: "Vazirmatn";
  src:
    local("Vazirmatn"),
    url("assets/fonts/Vazirmatn-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src:
    local("Vazirmatn"),
    url("assets/fonts/Vazirmatn-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src:
    local("Vazirmatn"),
    url("assets/fonts/Vazirmatn-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src:
    local("Vazirmatn"),
    url("assets/fonts/Vazirmatn-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #1f4f8f;
  --primary-dark: #173d70;
  --primary-soft: #edf4fc;
  --ink: #172033;
  --muted: #6c7688;
  --line: #e7ebf0;
  --surface: #ffffff;
  --surface-soft: #f7f9fc;
  --danger: #b42318;
  --danger-bg: #fff4f2;
  --success: #1f7a54;
  --radius-lg: 28px;
  --radius-md: 16px;
  --shadow-lg: 0 30px 80px rgba(23, 61, 112, 0.12);
  --shadow-md: 0 14px 40px rgba(23, 61, 112, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 10%, rgba(31, 79, 143, 0.08), transparent 26rem),
    linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  font-family: "Vazirmatn", Tahoma, sans-serif;
  font-size: 15px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100vh - 74px);
  margin: 0 auto;
  padding: 32px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(390px, 0.96fr);
  align-items: stretch;
  gap: 0;
}

.hero-panel,
.login-panel {
  position: relative;
  overflow: hidden;
}

.hero-panel {
  min-height: 720px;
  padding: 58px 54px;
  color: #fff;
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.15), transparent 22rem),
    linear-gradient(145deg, #245d9f 0%, #1f4f8f 50%, #163b6e 100%);
  /* border-radius: var(--radius-lg) 0 0 var(--radius-lg); */
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -10% -18% 26%;
  height: 42%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: rotate(-16deg);
}

.hero-decoration {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  pointer-events: none;
}

.hero-decoration--one {
  width: 280px;
  height: 280px;
  left: -170px;
  top: 70px;
}

.hero-decoration--two {
  width: 420px;
  height: 420px;
  right: -250px;
  top: -230px;
}

.brand-block,
.contact-card {
  position: relative;
  z-index: 1;
}

.brand-block {
  max-width: 590px;
}

.brand-logo {
  width: 90px;
  height: 90px;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  padding: 12px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 500;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.1);
}

.hero-panel h1 {
  max-width: 560px;
  margin: 0;
  color: #fff;
  /* font-size: clamp(31px, 4vw, 46px); */
  font-size: clamp(31px, 4vw, 34px);
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1.5;
}

.hero-copy {
  max-width: 500px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  line-height: 2.05;
}

.contact-card {
  max-width: 585px;
  margin-top: 44px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.contact-card__heading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.contact-icon {
  /* width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 18px; */
  width: 38px;
  height: 38px;
  display: flex;
  flex-direction: row;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 24px !important;
  justify-content: center;
  align-items: center;
  padding: 0 !important;
}

.contact-card__heading strong,
.contact-card__heading span {
  display: block;
}

.contact-card__heading strong {
  font-size: 14px;
  font-weight: 600;
}

.contact-card__heading span {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

.contact-list {
  display: grid;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  transition: background 160ms ease, padding 160ms ease;
}

.contact-item:last-child {
  border-bottom: 0;
}

.contact-item:hover {
  padding-inline: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.contact-item span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
}

.contact-item b {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.login-panel {
  min-height: 720px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 46px;
  background: rgba(255, 255, 255, 0.92);
  /* border-radius: 0 var(--radius-lg) var(--radius-lg) 0; */
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.login-card {
  width: min(100%, 420px);
}

.login-header {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 5px rgba(31, 122, 84, 0.08);
}

.login-card h2 {
  margin: 17px 0 8px;
  font-size: 31px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.4px;
}

.login-subtitle {
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 13px;
}

.field {
  margin-bottom: 19px;
}

.field-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
}

.input-wrap {
  position: relative;
}

.input-wrap input {
  width: 100%;
  height: 56px;
  padding: 0 46px 0 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.input-wrap input::placeholder {
  color: #a2aab7;
}

.input-wrap input:hover {
  border-color: #d7dde6;
}

.input-wrap input:focus {
  border-color: rgba(31, 79, 143, 0.64);
  box-shadow: 0 0 0 4px rgba(31, 79, 143, 0.09);
}

.input-icon {
  position: absolute;
  top: 50%;
  right: 16px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: #99a2af;
  font-size: 12px;
  transform: translateY(-50%);
  pointer-events: none;
}

.password-toggle {
  position: absolute;
  top: 50%;
  left: 10px;
  padding: 6px 8px;
  color: var(--primary);
  background: transparent;
  border: 0;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transform: translateY(-50%);
}

.password-toggle:hover {
  background: var(--primary-soft);
}

.login-error {
  display: none;
  align-items: flex-start;
  gap: 9px;
  margin: 6px 0 16px;
  padding: 11px 12px;
  color: var(--danger);
  background: var(--danger-bg);
  border: 1px solid #ffd9d3;
  border-radius: 13px;
  font-size: 12px;
  line-height: 1.9;
}

.login-error.is-visible {
  display: flex;
  animation: error-in 180ms ease-out;
}

.login-error__icon {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  margin-top: 1px;
  border-radius: 50%;
  color: #fff;
  background: var(--danger);
  font-size: 11px;
  font-weight: 700;
}

.login-button {
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
  padding: 0 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, #2b66ad 100%);
  border: 0;
  border-radius: var(--radius-md);
  box-shadow: 0 13px 28px rgba(31, 79, 143, 0.2);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.login-button:hover {
  filter: brightness(1.03);
  box-shadow: 0 16px 34px rgba(31, 79, 143, 0.25);
  transform: translateY(-1px);
}

.login-button:active {
  transform: translateY(0);
  box-shadow: 0 10px 24px rgba(31, 79, 143, 0.18);
}

.login-button__arrow {
  display: inline-block;
  font-size: 16px;
  transition: transform 160ms ease;
}

.login-button:hover .login-button__arrow {
  transform: translateX(-3px);
}

.login-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
  color: #9aa3b0;
  font-size: 11px;
}

.separator {
  color: #c2c8d0;
}

.site-footer {
  width: min(1180px, calc(100% - 32px));
  min-height: 42px;
  margin: 0 auto;
  padding: 0 2px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #7f8999;
  font-size: 11px;
}

.site-footer span:last-child {
  direction: ltr;
  font-family: Arial, sans-serif;
}

@keyframes error-in {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .page-shell {
    grid-template-columns: 1fr;
    width: min(760px, calc(100% - 28px));
    padding-top: 22px;
  }

  .hero-panel {
    min-height: auto;
    padding: 42px 36px 34px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .hero-panel h1 {
    font-size: clamp(28px, 6vw, 42px);
  }

  .contact-card {
    margin-top: 34px;
  }

  .login-panel {
    min-height: auto;
    padding: 40px 34px 44px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }

  .site-footer {
    width: min(760px, calc(100% - 28px));
  }
}

@media (max-width: 560px) {
  body {
    font-size: 14px;
  }

  .page-shell {
    width: min(100% - 18px, 520px);
    padding: 9px 0 18px;
  }

  .hero-panel {
    padding: 30px 22px 24px;
  }

  .brand-logo {
    width: 74px;
    height: 74px;
    margin-bottom: 22px;
    border-radius: 20px;
  }

  .hero-panel h1 {
    font-size: 27px;
    line-height: 1.65;
  }

  .hero-copy {
    margin-top: 12px;
    font-size: 13px;
  }

  .contact-card {
    padding: 15px;
    border-radius: 18px;
  }

  .contact-item {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
    padding: 11px 2px;
  }

  .contact-item b {
    font-size: 12px;
  }

  .login-panel {
    padding: 31px 21px 34px;
  }

  .login-card h2 {
    font-size: 26px;
  }

  .login-subtitle {
    margin-bottom: 25px;
  }

  .site-footer {
    width: min(100% - 18px, 520px);
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding-bottom: 17px;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
