/* ===== فونت دستی ===== */
@font-face {
  font-family: 'IRANSansWeb';
  src: url('/assets/fonts/IRANSansWeb.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IRANSansWeb';
  src: url('/assets/fonts/IRANSansWeb.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IRANSansWeb';
  src: url('/assets/fonts/IRANSansWeb.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IRANSansWeb';
  src: url('/assets/fonts/IRANSansWeb.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ===== متغیرها ===== */
:root {
  --bg: #10131a;
  --surface: #1a1f2b;
  --surface-border: #2a3142;
  --accent: #4f8ff0;
  --accent-soft: rgba(79, 143, 240, 0.12);
  --button: #feffff;
  --button-hover: #4f8ff0;
  --text-primary: #e7ebf3;
  --text-secondary: #8b93a7;
  --text-muted: #5b6478;
  --divider: #2c3444;
  --radius-lg: 16px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: 'Vazirmatn', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.screen {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  min-height: min(100vh - 48px, 780px);
}

.brand {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0 32px;
}

.brand svg {
  display: block;
  max-width: 100%;
  height: auto;
  width: 190px;
}

.form-area {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.field-group {
  background: var(--surface);
  border: 1.5px solid var(--surface-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field-group:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field input {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: 'Vazirmatn', sans-serif;
  font-size: 15px;
  padding: 18px 20px;
  text-align: right;
  direction: rtl;
}

.field input::placeholder {
  color: var(--text-secondary);
}

.field input:focus {
  outline: none;
}

.field-divider {
  height: 1px;
  background: var(--divider);
  margin: 0 20px;
}

.login-button {
  background: var(--button);
  background-color: #5e7e89;
  border: none;
  color: #f4f6fa;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 17px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.15s ease;
}

.login-button:hover {
  background: var(--button-hover);
}

.login-button:active {
  background: var(--button);
  filter: brightness(0.95);
}

.text-link {
  background: none;
  border: none;
  color: var(--accent);
  font-family: 'Vazirmatn', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  padding: 4px;
}

.text-link:hover {
  text-decoration: underline;
}

.footer {
  margin-top: auto;
  text-align: center;
  padding-top: 48px;
}

.version {
  color: var(--text-muted);
  font-size: 13px;
  font-family: 'Vazirmatn', sans-serif;
}

@media (max-width: 480px) {
  .brand svg {
    width: 140px;
  }
}

@media (max-width: 380px) {
  .brand {
    padding: 48px 0 24px;
  }
  .brand svg {
    width: 120px;
  }
}