.chinyaft-auth-wrapper {
  position: relative;
  min-height: 100vh;
  font-family: 'Vazirmatn', Vazir, sans-serif;
  background: #f7f9fc;
  overflow: hidden;
}


/* RTL input layout: text right, icon left */
.chinyaft-auth-form .field {
  display: flex;
  align-items: center;
  flex-direction: row-reverse;
  gap: 12px; /* فاصله بین آیکون و متن */
}

.chinyaft-auth-form input {
  text-align: right;
  direction: rtl;
}

.chinyaft-auth-form .icon {
  flex-shrink: 0;
  opacity: 0.7;
}

.chinyaft-auth-form .icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* icon shapes */
.field-email .icon::before {
  content: "✉";
}

.field-password .icon::before {
  content: "🔒";
}







.chinyaft-map-bg {
  position: absolute;
  inset: 0;
  background: url('../img/Main_map.png') center/cover no-repeat;
  opacity: 1;
}

.chinyaft-auth-card {
  position: relative;
  width: 420px;
  max-width: 92%;
  margin: 80px auto;
  background: #ffffff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
  text-align: center;
  z-index: 2;
}

.chinyaft-auth-card h1 {
  margin-bottom: 8px;
  font-size: 22px;
}

.chinyaft-auth-card .subtitle {
  font-size: 14px;
  color: #555;
  margin-bottom: 24px;
}

.chinyaft-auth-form .field {
  display: flex;
  align-items: center;
  background: #f4f6fa;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.chinyaft-auth-form .icon {
  margin-left: 8px;
  opacity: 0.6;
}

.chinyaft-auth-form input {
  border: none;
  background: transparent;
  width: 100%;
  font-size: 14px;
  outline: none;
}

.btn-primary {
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #1e88e5, #1565c0);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
}

.footer-text {
  margin-top: 18px;
  font-size: 12px;
  color: #666;
}






/* ===============================
   AUTH – VERIFY EMAIL UI
   =============================== */

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;

    /* ✅ BACKGROUND IMAGE */
    background-image: url('../img/Main_map.png') center/cover no-repeat;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    direction: rtl;
    font-family: IRANSans, sans-serif;
}


.auth-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 14px;
    padding: 28px 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.auth-title {
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
    color: #222;
}

.auth-subtitle {
    font-size: 14px;
    text-align: center;
    color: #666;
    margin-bottom: 16px;
}

.email-box {
    background: #f1f3f8;
    border-radius: 8px;
    padding: 10px 12px;
    text-align: center;
    font-size: 14px;
    color: #333;
    margin-bottom: 16px;
    word-break: break-all;
}

.auth-form {
    margin-top: 8px;
}

.input-group {
    position: relative;
    margin-bottom: 16px;
}

.input-group input {
    width: 100%;
    padding: 12px 44px 12px 12px;
    font-size: 15px;
    border-radius: 10px;
    border: 1px solid #dcdcdc;
    outline: none;
    transition: border-color .2s;
}

.input-group input:focus {
    border-color: #4f46e5;
}

.input-group .icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    opacity: 0.6;
}

.auth-btn {
    width: 100%;
    background: #4f46e5;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, opacity .2s;
}

.auth-btn:hover {
    background: #4338ca;
}

.auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.resend-box {
    margin-top: 18px;
    text-align: center;
    font-size: 14px;
    color: #555;
}

.resend-box button {
    background: none;
    border: none;
    color: #4f46e5;
    cursor: pointer;
    font-weight: 600;
    margin-right: 6px;
}

.resend-box button:hover {
    text-decoration: underline;
}

#chinyaft-resend-msg {
    margin-top: 8px;
    font-size: 13px;
}

/* Messages */
.error {
    color: #d32f2f;
    font-size: 14px;
    text-align: center;
    margin-bottom: 10px;
}

.success {
    color: #2e7d32;
    font-size: 14px;
    text-align: center;
    margin-bottom: 10px;
}

.change-email {
    margin-top: 18px;
    text-align: center;
}

.change-link {
    background: none;
    border: none;
    color: #5b5bd6;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
}

.change-link:hover {
    opacity: 0.8;
}

.change-email-form {
    display: none;
    margin-top: 16px;
}

.input-row {
    display: flex;
    gap: 10px;
}

.input-row input {
    flex: 1;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 14px;
}

.input-row button {
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    background: #4b43d0;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

#change-email-msg {
    margin-top: 10px;
    font-size: 13px;
}



/* Mobile */
@media (max-width: 480px) {
    .auth-card {
        padding: 22px 18px;
    }
    
    
    
    
.dashboard-wrapper {
    direction: rtl;
    max-width: 1000px;
    margin: 30px auto;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
}

.orders-table th,
.orders-table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    text-align: center;
}

.order-img {
    width: 60px;
    height: auto;
    border-radius: 6px;
}

.order-status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
}

.status-pending { background:#fff3cd; }
.status-processing { background:#cce5ff; }
.status-shipped { background:#d4edda; }

