/* صفحات الحساب: الدخول، التسجيل، نسيت كلمة المرور، كلمة مرور جديدة، اختيار الاسم، حسابي
   نفس خلفية الموقع وشريطه، وبطاقة فاتحة موحدة، وخط الموقع في كل شي */

.auth-page {
  margin: 110px auto 60px; /* مسافة الشريط العلوي الثابت */
  padding: 34px 16px 0;    /* padding مو margin، عشان المسافة ما تندمج وتضيع */
}

.auth-card {
  max-width: 440px;
  margin: 0 auto;
  background: rgba(255, 250, 242, 0.95);
  color: #3b1d14;
  border-radius: 22px;
  padding: 34px 32px 30px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.auth-card h1 {
  color: #800000;
  font-size: 2.3rem;
  margin: 0 0 6px;
}

.auth-subtitle {
  color: #8a5a44;
  font-size: 1.05rem;
  margin: 0 0 22px;
}

/* الخانات */
.auth-card input[type="text"],
.auth-card input[type="email"],
.auth-card input[type="password"],
.auth-card input[type="date"] {
  width: 100%;
  font-family: inherit;
  font-size: 1.1rem;
  color: #3b1d14;
  background: #fff;
  border: 2px solid #e6d5bf;
  border-radius: 12px;
  padding: 12px 16px;
  margin: 8px 0;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  text-align: right;
}

.auth-card input:focus {
  border-color: #1a8cff;
  box-shadow: 0 0 0 3px rgba(26, 140, 255, 0.15);
}

.auth-card input[readonly] {
  background: #f1e8dc;
  color: #7a6150;
  direction: ltr;
  text-align: right;
}

.auth-card input::placeholder {
  color: #b39a86;
}

/* كلمة المرور مع زر الإظهار */
.password-wrapper {
  position: relative;
}

.password-wrapper input {
  padding-left: 46px !important;
}

.toggle-password {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 1.1rem;
  user-select: none;
}

/* الأزرار: نفس ستايل أزرار الموقع (ثلاثي الأبعاد) */
.auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  font-family: inherit;
  font-size: 1.45rem;
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 11px 16px 13px;
  margin-top: 14px;
  cursor: pointer;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  background: linear-gradient(180deg, #1a8cff 0%, #0062cc 100%);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.22), 0 10px 18px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}

.auth-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.07);
}

.auth-btn:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.22), 0 4px 8px rgba(0, 0, 0, 0.15);
}

.auth-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.auth-btn.danger {
  background: linear-gradient(180deg, #d9453a 0%, #b3261e 100%);
}

/* زر Google: أبيض بإطار (زي الشكل الرسمي حقهم) */
.auth-btn.google {
  background: #fff;
  color: #3b1d14;
  text-shadow: none;
  font-size: 1.2rem;
  border: 2px solid #e6d5bf;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.1), 0 8px 14px rgba(0, 0, 0, 0.08);
}

.auth-btn.google svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* فاصل "أو" */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #a58a74;
  margin: 20px 0 4px;
  font-size: 1rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e6d5bf;
}

/* الرسائل والروابط */
.auth-message {
  min-height: 1.4em;
  margin: 14px 0 0;
  color: #b3261e;
  font-size: 1.05rem;
}

.auth-links {
  margin-top: 18px;
  font-size: 1.05rem;
  line-height: 2;
}

.auth-links a {
  color: #b3261e;
  text-decoration: none;
}

.auth-links a:hover {
  text-decoration: underline;
}

.auth-links .muted {
  color: #8a5a44;
}

/* تنبيه (مثلًا: حسابك محظور) */
.auth-notice {
  background: rgba(179, 38, 30, 0.08);
  border-right: 4px solid #b3261e;
  border-radius: 10px;
  padding: 12px 16px;
  margin: 10px 0 16px;
  text-align: right;
  line-height: 1.8;
}

/* صفحة حسابي */
.form-group {
  text-align: right;
  margin-bottom: 8px;
}

.form-group label {
  display: block;
  font-size: 1rem;
  color: #800000;
  margin: 10px 0 0;
}

#profile-pic-preview {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.2s;
}

#profile-pic-preview:hover {
  transform: scale(1.05);
}

.avatar-hint {
  font-size: 0.95rem;
  color: #8a5a44;
  margin: 6px 0 14px;
}

@media (max-width: 768px) {
  .auth-page { margin-top: 90px; }
  .auth-card { padding: 26px 20px 24px; }
  .auth-card h1 { font-size: 1.9rem; }
  .auth-btn { font-size: 1.3rem; }
}
