@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0d0f14;
  --panel: #161a24;
  --panel2: #1e2333;
  --border: #2a3045;
  --accent: #4f8ef7;
  --accent2: #7c5cbf;
  --text: #e2e8f0;
  --text-dim: #7a8ba0;
  --success: #3ecf8e;
  --danger: #f87171;
  --radius: 12px;
}

body {
  font-family: 'Vazirmatn', sans-serif;
  background: radial-gradient(ellipse at center, #1a1e2e 0%, #0d0f14 100%);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-wrap {
  width: 100%;
  max-width: 420px;
}

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 22px;
}
.auth-logo .mark {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.auth-logo h1 { font-size: 16px; font-weight: 600; }

.auth-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
}

.auth-card h2 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
  text-align: center;
}
.auth-card .sub {
  font-size: 12.5px;
  color: var(--text-dim);
  text-align: center;
  margin-bottom: 22px;
  line-height: 1.6;
}

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 12.5px;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.field input, .field textarea {
  width: 100%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 9px;
  padding: 11px 13px;
  color: var(--text);
  font-family: 'Vazirmatn', sans-serif;
  font-size: 13.5px;
  transition: border-color .2s;
}
.field textarea { resize: vertical; min-height: 70px; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.field .hint { font-size: 11px; color: var(--text-dim); margin-top: 5px; }

.btn-main {
  width: 100%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: none;
  border-radius: 9px;
  padding: 12px;
  color: #fff;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s, transform .1s;
}
.btn-main:hover { opacity: .92; }
.btn-main:active { transform: scale(.99); }

.auth-links {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  font-size: 12.5px;
}
.auth-links a { color: var(--accent); text-decoration: none; }
.auth-links a:hover { text-decoration: underline; }

.alert {
  border-radius: 9px;
  padding: 11px 14px;
  font-size: 12.5px;
  margin-bottom: 16px;
  line-height: 1.6;
}
.alert-error {
  background: rgba(248,113,113,.1);
  border: 1px solid rgba(248,113,113,.4);
  color: var(--danger);
}
.alert-success {
  background: rgba(62,207,142,.1);
  border: 1px solid rgba(62,207,142,.4);
  color: var(--success);
}

.step-indicator {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 20px;
}
.step-dot {
  width: 26px; height: 4px;
  border-radius: 4px;
  background: var(--border);
}
.step-dot.active { background: var(--accent); }

.operator-link {
  position: fixed;
  bottom: 14px;
  left: 14px;
  z-index: 50;
  background: rgba(22,26,36,.85);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 7px 14px;
  font-size: 11px;
  color: var(--text-dim);
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: color .2s, border-color .2s;
}

.operator-link {
  position: fixed;
  bottom: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.05);
  color: #6c757d;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  z-index: 1000;
}

.operator-link:hover {
  background: rgba(0, 0, 0, 0.08);
  border-color: #6c757d;
  color: #343a40;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.operator-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.operator-link span {
  display: inline-block;
}

/* برای نمایش فقط آیکون در صفحه‌های کوچک */
@media (max-width: 480px) {
  .operator-link span {
    display: none;
  }
  
  .operator-link {
    padding: 10px;
    border-radius: 50%;
    min-width: 40px;
    min-height: 40px;
    justify-content: center;
  }
}

.operator-link:hover { color: var(--accent); border-color: var(--accent); }
