:root {
  --main-gold: #d4af37;
  --hover-gold: #c89e2b;
  --bg-dark: #0f0f0f;
  --bg-light: #1a1a1a;
  --text-light: #f1f1f1;
  --text-muted: #bbbbbb;
  --transition-speed: 0.3s;
  --card-radius: 16px;
  font-family: 'Vazirmatn', sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Vazirmatn', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
}

/* ساختار صفحه کلی */
.page-wrapper {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.center-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 100px;
}

/* لوگو بالا سمت راست */
.top-bar {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

.top-bar img {
  height: 48px;
}

/* جعبه فرم ورود */
.form-container {
  background-color: var(--bg-light);
  padding: 2.5rem 2rem;
  border-radius: var(--card-radius);
  box-shadow: 0 0 30px rgba(247, 200, 67, 0.1);
  max-width: 360px;
  width: 90%;
  text-align: center;
}

.form-container h2 {
  color: var(--main-gold);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1rem;
  border: none;
  border-radius: var(--card-radius);
  background-color: #222;
  color: var(--text-light);
  font-size: 1rem;
}

input::placeholder {
  color: #999;
}

button {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(to left, var(--main-gold), var(--hover-gold));
  border: none;
  border-radius: var(--card-radius);
  color: #000;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

button:hover {
  transform: scale(1.05);
}

/* پیام خطا */
.status-text {
  background-color: #c0392b;
  padding: 0.8rem;
  border-radius: var(--card-radius);
  margin-bottom: 1rem;
  color: #fff;
}

/* لینک ثبت‌نام */
.register-link {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.register-link a {
  color: var(--main-gold);
  font-weight: bold;
  text-decoration: none;
}

/* فوتر چسبیده پایین */
.sticky-footer {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 15, 15, 0.75);
  padding: 0.7rem 1.2rem;
  border-radius: 50px;
  display: flex;
  gap: 1rem;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  justify-content: center;
  align-items: center;
}

/* دایره طلایی برای آیکون */
.sticky-footer a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--main-gold);
  border-radius: 50%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sticky-footer a:hover {
  transform: scale(1.15);
  box-shadow: 0 0 12px var(--main-gold);
}

/* آیکون مشکی وسط دایره طلایی */
.sticky-footer a img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0) saturate(100%);
  transition: filter 0.3s ease;
}

/* سایز مخصوص واتساپ */
.sticky-footer a img[alt="WhatsApp"] {
  width: 24px;
  height: 24px;
  padding: 0;
}

/* ریسپانسیو برای موبایل */
@media (max-width: 500px) {
  .form-container {
    padding: 2rem 1.2rem;
  }

  .sticky-footer {
    bottom: 15px;
    gap: 0.7rem;
    padding: 0.5rem 0.8rem;
  }

  .sticky-footer a {
    width: 34px;
    height: 34px;
  }

  .sticky-footer a img {
    width: 18px;
    height: 18px;
  }

  .sticky-footer a img[alt="WhatsApp"] {
    width: 20px;
    height: 20px;
  }
}
