/* ۱. تعریف فونت محلی وزیرمتن بدون وابستگی به اینترنت */
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/webfonts/Vazirmatn-Regular.woff2') format('woff2'),
       url('../fonts/ttf/Vazirmatn-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/webfonts/Vazirmatn-Bold.woff2') format('woff2'),
       url('../fonts/ttf/Vazirmatn-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  margin: 0;
  padding: 0;
}

body {
  background: #0f172a url('../img/bg.jpg') no-repeat center center fixed;
  background-size: cover;
  color: #f8fafc;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 20px;
}

/* افکت شیشه‌ای مشترک */
.card-glass {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.45);
  border-radius: 16px;
  padding: 28px;
  width: 100%;
}

.auth-container {
  max-width: 420px;
  margin: auto;
}

.main-container {
  max-width: 850px;
  margin-top: 15px;
}

h1, h2 {
  color: #f59e0b;
  text-align: center;
  margin-bottom: 8px;
  font-weight: 700;
}

.subtitle {
  text-align: center;
  color: #94a3b8;
  font-size: 0.95rem;
  margin-bottom: 24px;
}

/* فرم‌ها و اینپوت‌ها */
.form-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
}

.form-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.form-row .form-group {
  flex: 1 1 calc(50% - 16px);
  min-width: 240px;
}

label {
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: #cbd5e1;
  font-weight: 500;
}

input[type="text"],
input[type="password"],
input[type="number"],
select,
textarea {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid #475569;
  border-radius: 8px;
  color: #ffffff;
  padding: 10px 14px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25);
}

select option {
  background-color: #1e293b;
  color: #fff;
}

/* دکمه‌ها */
.btn-submit {
  width: 100%;
  background: linear-gradient(135deg, #d97706, #f59e0b);
  color: #0f172a;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 10px;
}

.btn-submit:hover {
  background: linear-gradient(135deg, #b45309, #d97706);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.btn-secondary {
  display: inline-block;
  text-decoration: none;
  background: #334155;
  color: #e2e8f0;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: 0.2s;
  text-align: center;
}

.btn-secondary:hover {
  background: #475569;
  color: #fff;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  background: rgba(30, 41, 59, 0.7);
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-links {
  margin-top: 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-links a {
  color: #38bdf8;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}

.auth-links a:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

/* پیام‌ها (Alerts) */
.alert {
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  text-align: center;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #ef4444;
  color: #fca5a5;
}

.alert-success {
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid #22c55e;
  color: #86efac;
}

/* کارت نتیجه و موفقیت */
.status-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
}
.badge-green { background: rgba(34, 197, 94, 0.2); color: #4ade80; border: 1px solid #22c55e; }
.badge-blue { background: rgba(59, 130, 246, 0.2); color: #60a5fa; border: 1px solid #3b82f6; }
.badge-orange { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid #f59e0b; }
.badge-red { background: rgba(239, 68, 68, 0.2); color: #f87171; border: 1px solid #ef4444; }
