/* صفحات تسجيل الدخول والتسجيل */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem 3rem;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  padding: 2rem 1.75rem;
  border-radius: 1.35rem;
  border: 1px solid rgba(16, 185, 129, 0.2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 253, 244, 0.95) 100%);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.1), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.auth-card__logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 18px;
  background: linear-gradient(145deg, #dcfce7, #bbf7d0);
  border: 1px solid #86efac;
  display: grid;
  place-items: center;
  font-size: 1.75rem;
  color: #15803d;
}

.auth-title {
  font-weight: 800;
  font-size: 1.35rem;
  color: #0f172a;
  text-align: center;
  margin-bottom: 0.35rem;
}

.auth-sub {
  text-align: center;
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.auth-form .form-label {
  font-weight: 600;
  font-size: 0.88rem;
  color: #334155;
}

.auth-form .form-control,
.auth-form .form-select {
  border-radius: 0.75rem;
  border-color: #cbd5e1;
  padding: 0.65rem 0.9rem;
}

.auth-form .form-control:focus,
.auth-form .form-select:focus {
  border-color: #22c55e;
  box-shadow: 0 0 0 0.2rem rgba(34, 197, 94, 0.15);
}

.auth-submit {
  border-radius: 0.85rem;
  padding: 0.75rem;
  font-weight: 700;
  background: linear-gradient(145deg, #22c55e, #15803d);
  border: none;
}

.auth-footer {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: #64748b;
}

.auth-footer a {
  color: #15803d;
  font-weight: 700;
  text-decoration: none;
}

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

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #64748b;
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.auth-back:hover {
  color: #15803d;
}

.auth-alert {
  display: none;
  border-radius: 0.75rem;
  font-size: 0.88rem;
}

.auth-alert.show {
  display: block;
}

.app-sidebar-auth-slot .btn {
  font-size: 0.8rem;
}

/* إظهار/إخفاء كلمة المرور */
.password-field-wrap {
  position: relative;
}

.password-field-wrap .form-control {
  padding-inline-end: 2.75rem;
}

.btn-password-toggle {
  position: absolute;
  inset-inline-end: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #64748b;
  padding: 0.35rem 0.5rem;
  border-radius: 0.5rem;
  line-height: 1;
  cursor: pointer;
}

.btn-password-toggle:hover {
  color: #15803d;
  background: rgba(0, 0, 0, 0.05);
}

.btn-password-toggle:focus-visible {
  outline: 2px solid #22c55e;
  outline-offset: 2px;
}
