/* CSS Document */
@charset "UTF-8";

/* ======================================== */
/* تنظیمات پایه
/* ======================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: 'Vazir', 'Tahoma', sans-serif;
  text-align: right;
}

body {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-image 1s ease-in-out;
  background-attachment: fixed;
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding-right: 0 !important;
  margin-right: 0 !important;
}

/* ======================================== */
/* کانتینر اصلی
/* ======================================== */

.container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  z-index: 1;
}

/* ======================================== */
/* کارت ورود
/* ======================================== */

.card {
  width: 100%;
  max-width: 400px;
  background-color: rgba(0, 0, 0, 0.6) !important;
  margin: auto;
  border-radius: 10px;
  backdrop-filter: blur(2px);
  border: none;
  overflow: hidden;
}

.card-header {
  padding: 15px 20px 10px 20px !important;
  text-align: center;
}

.card-header img {
  max-width: 70px;
  margin-bottom: 5px;
}

.card-header h5 {
  color: #FFC312 !important;
  margin: 3px 0 !important;
  font-size: 16px;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.card-body {
  padding: 20px 25px 25px 25px !important;
  background-color: rgba(0, 0, 0, 0.7);
}

.card-footer {
  background-color: rgba(0, 0, 0, 0.5);
  text-align: center;
  padding: 15px;
}

.card-footer small {
  color: #ccc;
  font-size: 12px;
}

/* ======================================== */
/* فرم ورود
/* ======================================== */

.form-label {
  color: white;
  font-weight: 500;
  margin-bottom: 8px;
}

.form-control {
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 8px;
  padding: 10px 15px;
  font-family: 'Vazir', 'Tahoma', sans-serif;
  direction: rtl;
  text-align: right;
}

.form-control:focus {
  box-shadow: 0 0 0 3px rgba(255, 195, 18, 0.3);
  background-color: white;
  outline: none;
}

.input-group-prepend span {
  width: 50px;
  background-color: #FFC312;
  color: black;
  border: 0 !important;
  border-radius: 8px 0 0 8px;
}

.input-icon {
  border-radius: 0;
}

/* ======================================== */
/* دکمه‌ها
/* ======================================== */

.login_btn {
  color: black;
  background: linear-gradient(135deg, #FFC312 0%, #e0a800 100%);
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.login_btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  background: linear-gradient(135deg, #e0a800 0%, #ffc107 100%);
  color: #000;
}

/* ======================================== */
/* انتخاب نوع کاربر
/* ======================================== */

.user-type-btn {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
  background: rgba(255, 255, 255, 0.15);
  padding: 5px;
  border-radius: 50px;
}

.user-type-option {
  flex: 1;
  text-align: center;
  padding: 10px 5px;
  border-radius: 40px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: white;
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
}

.user-type-option i {
  margin-left: 8px;
  font-size: 14px;
}

.user-type-option.active {
  background: #FFC312;
  color: #333;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.user-type-option:not(.active):hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ======================================== */
/* ویجت ساعت و تاریخ
/* ======================================== */

.datetime-widget {
  position: fixed;
  top: 20px;
  right: 20px;
  left: auto;
  z-index: 1000;
  font-family: 'Vazir', sans-serif;
  animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

.glass-card-horizontal {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
  backdrop-filter: blur(15px);
  border-radius: 50px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
}

.glass-card-horizontal:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6));
}

.clock-icon, .calendar-icon {
  font-size: 20px;
  opacity: 0.9;
  color: #ffffff !important;
}

.clock-icon {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.time {
  font-size: 20px;
  font-weight: bold;
  color: #FFC312;
  text-shadow: 0 0 5px rgba(255, 195, 18, 0.5);
  font-family: 'Vazir', monospace;
  letter-spacing: 1px;
}

.divider-vertical {
  width: 1px;
  height: 25px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.date {
  font-size: 14px;
  color: white;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* ======================================== */
/* تنظیمات موبایل
/* ======================================== */

@media (max-width: 576px) {
  .datetime-widget { top: 10px; right: 10px; left: auto; }
  .glass-card-horizontal { padding: 6px 12px; gap: 8px; }
  .clock-icon, .calendar-icon { font-size: 14px; }
  .time { font-size: 14px; }
  .date { font-size: 10px; }
  .divider-vertical { height: 18px; }
  .container { padding: 10px; }
  .card { max-width: 95%; }
  .card-header img { max-width: 60px; }
  .card-header h5 { font-size: 14px; }
  .card-body { padding: 15px; }
  .form-control { padding: 8px 12px; font-size: 13px; }
  .login_btn { padding: 8px 16px; font-size: 13px; }
  .user-type-option { font-size: 12px; padding: 8px 3px; }
  .user-type-option i { font-size: 12px; }
}

/* ======================================== */
/* اسکرول در صورت نیاز
/* ======================================== */

.container::-webkit-scrollbar {
  width: 5px;
}

.container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

.container::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
}

/* ======================================== */
/* SweetAlert2
/* ======================================== */

.swal2-popup {
  font-family: 'Vazir', 'Tahoma', sans-serif !important;
  direction: rtl !important;
}

.swal2-title, .swal2-html-container {
  font-family: 'Vazir', 'Tahoma', sans-serif !important;
  text-align: center !important;
}

/* ======================================== */
/* ابزارک‌های کمکی
/* ======================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-muted { color: #6c757d; }
.mt-2 { margin-top: 10px; }
.mt-3 { margin-top: 15px; }
.mt-4 { margin-top: 20px; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 10px; }
.mb-3 { margin-bottom: 15px; }
.ml-2 { margin-left: 10px; }
.ml-3 { margin-left: 15px; }
.mr-auto { margin-right: auto; }
.w-100 { width: 100%; }
.d-flex { display: flex; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }

