/* ====== REGISTER PAGE ONLY ====== */

.reg-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  text-align: center;
}

.reg-box {
  background: #fff;
  padding: 20px 18px;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  box-sizing: border-box;
}

.reg-label {
  font-size: 13px;
  font-weight: 600;
}

.reg-input {
  width: 100%;
  padding: 10px;
  margin: 4px 0 12px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 14px;
  display: block;
  max-width: 100%;
  box-sizing: border-box;
}

.reg-input:focus {
  border-color: #6C1B8C;
  box-shadow: 0 0 3px rgba(108, 27, 140, 0.3);
  outline: none;
}

.reg-btn {
  width: 100%;
  padding: 14px;
  background: #6C1B8C;
  border: none;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
}

.reg-btn:hover {
  opacity: 0.9;
}

.reg-error {
  color: red;
  font-size: 14px;
  margin-top: 10px;
}

.reg-bottom-text {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
}

.reg-bottom-text a {
  color: #6C1B8C;
  font-weight: 700;
  text-decoration: none;
}

/* Password field */

.password-wrapper {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 18px;
}

.reg-hint {
  font-size: 13px;
  color: #666;
  margin-bottom: 12px;
}
/* ============================================ */
/* ===== Fix password eye overlay/click ===== */
.password-wrapper{
  position: relative;
  width: 100%;
}

.password-wrapper .reg-input{
  padding-right: 44px; /* مساحة للأيقونة */
  box-sizing: border-box;
}

.password-toggle{
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;              /* يخليها فوق الـ input */
  pointer-events: auto;    /* تأكيد إنها قابلة للضغط */
  user-select: none;       /* مايتعملهاش تحديد */
}
/* ================= PAGE CONTAINER size ================= */

.orders-container{
  width: 80%;
  max-width: 820px;   /* ✅ ده اللي هيظبط الشاشات الكبيرة */
  margin: 0 auto;
  padding: 0 12px;
}
@media (max-width: 768px){
  .orders-container{
    width: 100%;
    max-width: 100%;
  }
}
.reg-mobile{
  direction: rtl;
  text-align: right;
}
/* # ====================================================== */
/* ===== Error Badge (مثل اللوجن) ===== */
.reg-error{
  margin-top: 12px;

  display: flex;
  align-items: center;
  gap: 10px;

  padding: 12px 14px;
  border-radius: 14px;

  background: rgba(229,57,53,.08);
  border: 1px solid rgba(229,57,53,.22);
  color: #b71c1c;

  font-size: 14px;
  font-weight: 700;

  box-shadow: 0 8px 20px rgba(229,57,53,.08);
}

.reg-error-icon{
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(229,57,53,.14);
  flex: 0 0 auto;
}

.reg-error-text{
  line-height: 1.5;
}

/* اخفاء ناعم */
.reg-error.hide{
  opacity: 0;
  transform: translateY(-6px);
  transition: .25s ease;
}
/* # ====================================================== */
