body {
  margin: 0;
  font-family: 'Vazirmatn', sans-serif;
  background-color: #121212;
  color: #fff;
  transition: background 0.3s, color 0.3s;
  min-height: 100vh;
  display: flex; 
  flex-direction: column;
}
body.light {
  background-color: #000;
  color: #000;
}
.container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  flex: 1;
}
.card {
  background: #2c2c2c;
  padding: 2rem;
  border-radius: 1rem;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: 0 0 20px rgba(255,255,255,0.1);
}
body.light .card {
  background: #fff;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
}
input[type=url] {
  width: 100%;
  padding: 0.7rem;
  margin: 1rem 0;
  border-radius: 0.5rem;
  border: none;
  font-size: 1rem;
  margin-right: -0.6rem;
  direction: ltr;
text-align: left;

;
}
button {
  background: #2196f3;
  color: white;
  border: none;
  padding: 0.7rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
}
.theme-toggle {
  margin-top: 1rem;
  background: transparent;
  color: inherit;
}

footer {
    background: #1e1e1e;
      padding: 1rem 2rem;
      text-align: center;
      font-weight: 700;
      font-size: 0.8rem;
      box-shadow: 0 0 10px rgba(0,0,0,0.5);
}
a:-webkit-any-link {
  color: #fff;
  text-decoration: none;
  direction: ltr;
  flex-grow: 1;
  margin-left: 0.5rem;
}

header {
      background: #1e1e1e;
      padding: 1rem 2rem;
      text-align: center;
      font-weight: 700;
      font-size: 1.2rem;
      box-shadow: 0 0 10px rgba(0,0,0,0.5);
}
body.light header,
body.light footer {
  background: #fff;
  color: #000;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

body.light a:-webkit-any-link {
  color: #000;
}

#captcha-label {
  font-size: 14px;
  color: #fff;
  margin-bottom: 5px;
}

body.light #captcha-label {
  font-size: 14px;
  color: #000;  /* مشکی */
  margin-bottom: 5px;
}

#captcha-question {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
}

#captcha-question {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  direction: ltr !important;  
  unicode-bidi: bidi-override;
  text-align: center; /* وسط‌چین */
}

.btn-custom {
  font-family: 'Vazirmatn', sans-serif; /* فونت دلخواه */
  font-weight: 700;  /* ضخیم‌تر */
  font-size: 16px;   /* اندازه فونت */
  background-color: #4CAF50; /* رنگ پس‌زمینه */
  color: white;      /* رنگ متن */
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

.btn-custom:hover {
  background-color: #45a049;
}

.container {
  display: flex;
  justify-content: center; /* افقی وسط */
  align-items: center;     /* عمودی وسط */
  min-height: 80vh;        /* ارتفاع حداقلی 80% ارتفاع صفحه */
  padding: 2rem 0;         /* فاصله بالا و پایین */
}


