@import url(./iransans.css);


body {
  margin: 0;
  font-family: IRANSansX;
  background: linear-gradient(135deg, #f9fbfe, #e0f2fe, #dbefff);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  direction: rtl;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

/* ========================== */
/*        Base Layout         */
/* ========================== */

.login-container {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(24px);
  border-radius: 24px;
  padding: 32px 24px;
  width: 100%;
  max-width: 420px;
  border: 1px solid #cbd5e1;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  animation: login-fade-in 0.8s ease-out forwards;
  transition: transform 0.25s ease, box-shadow 0.3s ease;
}

.login-container:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 0 0.5px rgba(255, 255, 255, 0.4),
    0 12px 40px rgba(31, 38, 135, 0.2);
}

@keyframes login-fade-in {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

/* ========================== */
/*          Header            */
/* ========================== */

.login-logo {
  display: block;
  margin: 20px auto 16px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #4b5563;
  border: 2px solid #ffffff;
  object-fit: cover;
}

.login-title {
  text-align: center;
  color: #334155;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.login_info {
  font-size: 14px;
  font-weight: 400;
  text-align: center;
  color: #475569;
  margin-bottom: 16px;
}

.login-subtitle {
  text-align: center;
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.7;
}

.login-subtitle a {
  color: #2563eb;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.2s ease;
}

.login-subtitle a:hover {
  color: #1e40af;
}

/* ========================== */
/*        Input Fields        */
/* ========================== */

.login-input-group {
  display: flex;
  align-items: center;
  background: #ffffffcc;
  border: 1px solid #d1d5db;
  border-radius: 16px;
  margin-bottom: 16px;
  padding: 10px 14px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.login-input-group:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px #c7d8fd;
}

.login-input-group:focus-within i {
  color: #2563eb;
}

.login-input-group i {
  margin-left: 10px;
  color: #9ca3af;
  font-size: 18px;
  flex-shrink: 0;
}

.login-input-group input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  padding: 10px 8px;
  direction: rtl;
  color: #374151;
}

.login-input-group input::placeholder {
  font-family: IRANSansX !important;
  font-size: 12px;
  font-weight: 300;
  opacity: 1;
  transition: opacity 0.2s ease;
}
.login-input-group input:focus::placeholder {
  opacity: 0;
}
.login-password-wrapper {
  position: relative;
}

.login-password-wrapper i.toggle {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #9ca3af;
  font-size: 18px;
  transition: color 0.2s ease;
}

.login-password-wrapper i.toggle:hover {
  color: #2563eb;
}

/* ========================== */
/*           Button           */
/* ========================== */

.login-btn {
  width: 100%;
  padding: 12px;
  font-family: inherit;
  background: #2563eb;
  color: #ffffff;
  font-weight: 600;
  font-size: 15px;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.2);
}

.login-btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px) scale(1.01);
  box-shadow:
    0 6px 28px rgba(37, 99, 235, 0.35),
    0 0 0 3px rgba(37, 99, 235, 0.15);
}

.login-btn:active {
  transform: scale(0.98);
}

.login-btn:disabled {
  background: #e5e7eb;
  color: #6b7280;
  cursor: not-allowed;
  box-shadow: none;
}

/* ========================== */
/*         Feedback Box       */
/* ========================== */

.login-alert {
  display: none;
  padding: 10px;
  text-align: center;
  border-radius: 12px;
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.6;
}

.login-alert.login-error {
  background: #fee2e2;
  color: #b91c1c;
}

.login-alert.login-success {
  background: #d1fae5;
  color: #065f46;
}

/* ========================== */
/*      Spinner & Footer      */
/* ========================== */

.login-spinner {
  display: none;
  animation: login-spin 1s linear infinite;
}

@keyframes login-spin {
  0% { transform: rotate(0); }
  100% { transform: rotate(360deg); }
}

.underbtn {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-top: 18px;
  flex-wrap: wrap;
}

.login-forgot {
  font-size: 14px;
  color: #6b7280;
}

.login-forgot a {
  color: #2563eb;
  text-decoration: none;
}

.login-forgot a:hover {
  color: #0250f9;
}
#username-feedback {
  font-size: 12px;
  text-align: right;
  padding-right: 8px;
  background-color: none;
  color: rgb(148, 148, 148);
}
#username-feedback.login-success,
#username-feedback.login-error {
  display: block !important;
}
.login-alert {
  display: none;
  padding: 6px 8px;
  text-align: right;
  font-size: 13px;
  border-radius: 8px;
  line-height: 1.7;
  font-weight: 500;
  color: #374151;
  background: none;
}

.login-alert.login-error {
  color: #b91c1c;
  background: none !important;
}

.login-alert.login-success {
  color: #065f46;
  background: none !important;
}




/* فرم ورود با شماره موبایل (register) */
/* ----------------------------- */

/* === Container === */
.register-container,
.verify-container {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 32px 24px;
  width: 100%;
  max-width: 420px;
  border: 1px solid #cfe7ff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
  animation: fade-in 0.9s ease-out forwards;
  transition: transform 0.25s ease;
}

.verify-container {
  border-color: #bfdbfe;
  animation-name: verify-fade-in;
}

.register-container:hover,
.verify-container:hover {
  transform: translateY(-4px);
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes verify-fade-in {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* === Logo === */
.register-logo {
  display: block;
  margin: 0 auto 20px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #4b5563;
  border: 2px solid white;
  object-fit: cover;
}

/* === Titles === */
.register-title {
  text-align: center;
  color: #1e293b;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.register-p_title {
  text-align: center;
  color: #64748b;
  font-size: 14px;
  margin-bottom: 24px;
  line-height: 1.9;
}

/* === Input Group === */
.register-input-group {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 16px;
  margin-bottom: 16px;
  padding: 10px 14px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.register-input-group:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px #c7d8fd;
}

.register-input-group .input-icon {
  margin-left: 10px;
  color: #9ca3af;
  font-size: 20px;
  flex-shrink: 0;
}

.register-input-group:focus-within .input-icon {
  color: #2563eb;
}

.register-input-group input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 15px;
  padding: 8px;
  direction: rtl;
  color: #374151;
  font-family: inherit;
}

/* === Placeholder === */
.register-input-group input::placeholder {
  font-family: IRANSansX, sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: #9ca3af;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.register-input-group input:focus::placeholder {
  opacity: 0;
}

/* === Sample & Validation Messages === */
#mobile-sample {
  font-size: 12px;
  color: #999a9b;
  margin-bottom: 10px;
  margin-right: 10px;
  display: none;
  text-align: right;
}

#mobile-validation {
  font-size: 13px;
  margin-bottom: 12px;
  display: none;
  text-align: right;
  font-weight: 500;
}

#mobile-validation.register-success {
  color: #059669;
}

#mobile-validation.register-error {
  color: #dc2626;
}

/* === Button === */
.register-send-btn {
  width: 100%;
  padding: 12px 16px;
  background: #2563eb;
  color: #ffffff;
  font-weight: 600;
  font-size: 15px;
  font-family: inherit;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  margin-top: 20px;
  transition: all 0.25s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  box-shadow:
    0 4px 12px rgba(37, 99, 235, 0.2),
    0 0 0 2px rgba(37, 99, 235, 0.1);
}

.register-send-btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px) scale(1.01);
  box-shadow:
    0 6px 20px rgba(37, 99, 235, 0.35),
    0 0 0 3px rgba(37, 99, 235, 0.15);
}

.register-send-btn:active {
  transform: scale(0.98);
}

.register-send-btn:disabled {
  background: #d1d5db;
  color: #6b7280;
  cursor: not-allowed;
  box-shadow: none;
}

/* ------------------ لوگو و تیتر ------------------ */
.verify-logo {
  display: block;
  margin: 0 auto 20px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #4b5563;
  border: 2px solid white;
  object-fit: cover;
}

.verify-title {
  text-align: center;
  color: #1e293b;
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  font-family: IRANSansX;
}

.verify-subtitle {
  text-align: center;
  color: #64748b;
  font-size: 14px;
  margin-bottom: 24px;
  line-height: 1.8;
  font-family: IRANSansX;
}

/* ------------------ ورودی کد تایید ------------------ */
.verify-input-group {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 16px;
  margin-bottom: 16px;
  padding: 10px 14px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.verify-input-group:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px #c7d8fd;
}

.verify-input-group .input-icon {
  margin-left: 10px;
  color: #9ca3af;
  font-size: 20px;
  flex-shrink: 0;
  transition: color 0.3s ease;
}

.verify-input-group:focus-within .input-icon {
  color: #2563eb;
}

.verify-input-group input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 15px;
  padding: 8px;
  direction: rtl;
  color: #374151;
  font-family: IRANSansX;
}

.verify-input-group input::placeholder {
  color: #9ca3af;
  font-size: 13px;
  font-family: IRANSansX;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.verify-input-group input:focus::placeholder {
  opacity: 0;
}

/* ------------------ پیام‌های راهنما و خطا ------------------ */
#otp-sample {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 10px;
  display: none;
  text-align: right;
  font-family: IRANSansX;
}

#otp-validation {
  font-size: 13px;
  margin-bottom: 12px;
  display: none;
  text-align: right;
  font-weight: 500;
  font-family: IRANSansX;
}

#otp-validation.verify-success {
  color: #059669;
}

#otp-validation.verify-error {
  color: #dc2626;
}

/* ------------------ دکمه تایید ------------------ */
.verify-send-btn {
  width: 100%;
  padding: 12px 16px;
  background: #2563eb;
  color: #ffffff;
  font-weight: 600;
  font-size: 15px;
  font-family: IRANSansX;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  margin: 20px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
  box-shadow:
    0 4px 12px rgba(37, 99, 235, 0.2),
    0 0 0 2px rgba(37, 99, 235, 0.1);
}

.verify-send-btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px) scale(1.01);
  box-shadow:
    0 6px 20px rgba(37, 99, 235, 0.35),
    0 0 0 3px rgba(37, 99, 235, 0.15);
}

.verify-send-btn:active {
  transform: scale(0.98);
}

.verify-send-btn:disabled {
  background: #d1d5db;
  cursor: not-allowed;
  box-shadow: none;
  color: #6b7280;
}

/* ------------------ تایمر و ارسال مجدد ------------------ */
.verify-timer-section {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
  color: #475569;
  font-family: IRANSansX;
}

.verify-resend-btn {
  margin-top: 8px;
  background: none;
  border: none;
  color: #2563eb;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  font-family: IRANSansX;
  transition: color 0.3s ease, transform 0.2s ease;
}

.verify-resend-btn:hover {
  color: #1d4ed8;
  transform: scale(1.03);
}

.verify-resend-btn:disabled {
  color: #9ca3af;
  cursor: not-allowed;
  transform: none;
}




/* Final Registration Page CSS - Fully Updated & Synced with HTML */
/* ---------------- Utility ---------------- */
.hidden {
  display: none !important;
}

/* ---------------- Container ---------------- */
.final-register-container {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(24px);
  border-radius: 24px;
  padding: 30px;
  width: 100%;
  max-width: 420px;
  margin: auto;
  border: 1px solid #cfe9ff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  animation: final-fade-in 1s ease-out forwards;
  position: relative;
  transition: transform 0.3s ease;
}

.final-register-container:hover {
  transform: translateY(-4px);
}

@keyframes final-fade-in {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: none; }
}

/* ---------------- Logo & Title ---------------- */
.final-register-logo {
  display: block;
  margin: 20px auto 10px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #4b5563;
  border: 2px solid #fff;
}

.final-register-title {
  text-align: center;
  color: #1f2937;
  font-size: 22px;
  margin-bottom: 20px;
  font-weight: bold;
}

.final-register-subtitle {
  text-align: center;
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 40px;
  line-height: 1.7;
}

/* ---------------- Input Groups ---------------- */
.final-input-wrapper,
.final-input-group,
.final-captcha-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #d1d5db;
  border-radius: 16px;
  margin-bottom: 16px;
  padding: 8px 12px;
  direction: rtl;
  transition: border-color 0.25s ease;
}

.final-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  padding: 10px;
  direction: rtl;
  font-family: inherit;
  color: #111827;
}

/* ---------------- Placeholder Behavior ---------------- */
.final-input::placeholder {
  color: #9ca3af;
  transition: opacity 0.3s ease;
}
.final-input:focus::placeholder {
  opacity: 0;
}

/* ---------------- Icon Styling ---------------- */
/* ---------------- Icon Styling ---------------- */
.final-input-icon,
.final-input-group i {
  margin-right: 10px; /* قبلاً margin-left بود، حالا راست‌چین */
  margin-left: 0;
  color: #9ca3af;
  font-size: 18px;
  transition: color 0.25s ease;
  order: -1; /* آیکون قبل از input قرار بگیره در ساختار rtl */
}

/* تغییر رنگ آیکون هنگام فوکوس */
.final-input:focus ~ .final-input-icon,
.final-input:focus ~ i {
  color: #2563eb;
}


/* آیکون چشم در چپ */
.final-eye-toggle {
  position: absolute;
  left: 10px;
  cursor: pointer;
  font-size: 16px;
  color: #9ca3af;
  transition: color 0.25s ease;
}

.final-input:focus ~ .final-eye-toggle {
  color: #2563eb;
}

/* ---------------- Feedback ---------------- */
.final-success-msg {
  background-color: #d1fae5;
  color: #065f46;
  text-align: center;
  padding: 10px;
  border-radius: 16px;
  font-size: 14px;
  margin-bottom: 16px;
}

.final-error-msg {
  color: #dc2626;
  font-size: 13px;
  margin-top: 6px;
}

.final-feedback,
.final-success {
  font-size: 13px;
  margin-top: 4px;
  padding: 6px 8px;
  border-radius: 12px;
}

.final-feedback {
  background: #fee2e2;
  color: #b91c1c;
}

.final-success {
  background: #d1fae5;
  color: #065f46;
}

/* ---------------- Captcha ---------------- */
.final-captcha-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.final-captcha-refresh {
  background-color: #e5e7eb;
  padding: 6px 10px;
  border-radius: 6px;
  color: #4b5563;
  cursor: pointer;
  transition: background-color 0.3s;
  border: none;
}

.final-captcha-refresh:hover {
  background-color: #d1d5db;
}

#captcha-canvas {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background-color: #f3f4f6;
}

/* ---------------- Submit Button ---------------- */
.final-submit-btn {
  width: 100%;
  padding: 12px;
  background: #2563eb;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  direction: rtl;
  gap: 10px;
}

.final-submit-btn:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}

.final-submit-btn:disabled {
  background: #d1d5db;
  cursor: not-allowed;
}

/* ---------------- Footer ---------------- */
.final-terms {
  text-align: center;
  font-size: 12px;
  color: #6b7280;
  margin-top: 20px;
}

.final-terms a {
  color: #2563eb;
  text-decoration: none;
}

.final-terms a:hover {
  text-decoration: underline;
}

/* ---------------- Home Button ---------------- */
.final-home-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  color: #6b7280;
  font-size: 20px;
  text-decoration: none;
  transition: color 0.2s;
}

.final-home-btn:hover {
  color: #2563eb;
}
