body {
  margin: 0;
  padding: 0;
  font-family: "Vazirmatn", "Inter", sans-serif;
  background: linear-gradient(-45deg, #0f172a, #1e293b, #0f172a, #334155);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

body[data-theme="light"] {
  background: linear-gradient(-45deg, #f5f7fa, #e2e8f0, #f5f7fa, #cbd5e1);
}

.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
}

.login-box {
  background: rgba(20, 30, 50, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  padding: 32px 40px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transition: all 0.3s;
}

body[data-theme="light"] .login-box {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.login-box h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 28px;
  background: linear-gradient(135deg, #6c63ff, #36d1dc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body[data-theme="light"] .login-box h2 {
  background: linear-gradient(135deg, #4f46e5, #0891b2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.form-group {
  margin-bottom: 22px;
  position: relative;
  text-align: right;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #e2e8f0;
  font-size: 0.9rem;
}

body[data-theme="light"] .form-group label {
  color: #1e293b;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  color: #ffffff;
  font-size: 1rem;
  transition: all 0.2s;
  box-sizing: border-box;
}

body[data-theme="light"] .form-group input,
body[data-theme="light"] .form-group select {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.15);
  color: #1e293b;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #6c63ff;
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.2);
}

.toggle-password {
  position: absolute;
  left: 16px;
  top: 70%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #cbd5e1;
  z-index: 2;
}

body[data-theme="light"] .toggle-password {
  color: #64748b;
}

button {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #6c63ff, #36d1dc);
  border: none;
  border-radius: 40px;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 8px;
}

button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(108, 99, 255, 0.3);
}

.error-message {
  color: #f56565;
  font-size: 0.85rem;
  margin-top: 12px;
  text-align: center;
  display: none;
}

.extra-links {
  text-align: center;
  margin-top: 24px;
  color: #cbd5e1;
  font-size: 0.85rem;
}

body[data-theme="light"] .extra-links {
  color: #475569;
}

.extra-links a {
  color: #6c63ff;
  text-decoration: none;
  font-weight: 600;
}

.extra-links a:hover {
  text-decoration: underline;
}

#location-map {
  height: 250px;
  width: 100%;
  border-radius: 16px;
  margin: 12px 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

body[data-theme="light"] #location-map {
  border-color: rgba(0, 0, 0, 0.15);
}

.map-help {
  font-size: 0.8rem;
  color: #cbd5e1;
  margin-bottom: 8px;
}

body[data-theme="light"] .map-help {
  color: #475569;
}

.login-box {
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: thin;
}

.login-box::-webkit-scrollbar {
  width: 5px;
}

.login-box::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.login-box::-webkit-scrollbar-thumb {
  background: #6c63ff;
  border-radius: 10px;
}

body[data-theme="light"] .login-box::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
}


body {
  margin: 0;
  padding: 0;
  font-family: "Vazirmatn", "Inter", sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(-45deg, #0f172a, #1e293b, #0f172a, #334155);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

body[data-theme="light"] {
  background: linear-gradient(-45deg, #f5f7fa, #e2e8f0, #f5f7fa, #cbd5e1);
}

.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 20px;
}

.login-box {
  background: rgba(20, 30, 50, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  padding: 32px 40px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  animation: softGlow 6s ease-in-out infinite;
}

body[data-theme="light"] .login-box {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  animation: softGlowLight 6s ease-in-out infinite;
}

@keyframes softGlow {
  0% {
    box-shadow:
      0 20px 40px rgba(0, 0, 0, 0.3),
      0 0 0 2px rgba(108, 99, 255, 0);
  }
  50% {
    box-shadow:
      0 25px 45px rgba(0, 0, 0, 0.4),
      0 0 0 3px rgba(108, 99, 255, 0.15);
  }
  100% {
    box-shadow:
      0 20px 40px rgba(0, 0, 0, 0.3),
      0 0 0 2px rgba(108, 99, 255, 0);
  }
}

@keyframes softGlowLight {
  0% {
    box-shadow:
      0 20px 40px rgba(0, 0, 0, 0.1),
      0 0 0 2px rgba(79, 70, 229, 0);
  }
  50% {
    box-shadow:
      0 25px 45px rgba(0, 0, 0, 0.15),
      0 0 0 3px rgba(79, 70, 229, 0.15);
  }
  100% {
    box-shadow:
      0 20px 40px rgba(0, 0, 0, 0.1),
      0 0 0 2px rgba(79, 70, 229, 0);
  }
}

.login-box h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 28px;
  background: linear-gradient(135deg, #6c63ff, #36d1dc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body[data-theme="light"] .login-box h2 {
  background: linear-gradient(135deg, #4f46e5, #0891b2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.form-group {
  margin-bottom: 22px;
  position: relative;
  text-align: right;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #e2e8f0;
  font-size: 0.9rem;
}

body[data-theme="light"] .form-group label {
  color: #1e293b;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  color: #ffffff;
  font-size: 1rem;
  transition: all 0.2s;
  box-sizing: border-box;
}

body[data-theme="light"] .form-group input,
body[data-theme="light"] .form-group select {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.15);
  color: #1e293b;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #6c63ff;
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.2);
}

.toggle-password {
  position: absolute;
  left: 16px;
  top: 70%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #cbd5e1;
  z-index: 2;
}

body[data-theme="light"] .toggle-password {
  color: #64748b;
}

button {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #6c63ff, #36d1dc);
  border: none;
  border-radius: 40px;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 8px;
}

button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(108, 99, 255, 0.3);
}

.error-message {
  color: #f56565;
  font-size: 0.85rem;
  margin-top: 12px;
  text-align: center;
  display: none;
}

.extra-links {
  text-align: center;
  margin-top: 24px;
  color: #cbd5e1;
  font-size: 0.85rem;
}

body[data-theme="light"] .extra-links {
  color: #475569;
}

.extra-links a {
  color: #6c63ff;
  text-decoration: none;
  font-weight: 600;
}

.extra-links a:hover {
  text-decoration: underline;
}

#location-map {
  height: 250px;
  width: 100%;
  border-radius: 16px;
  margin: 12px 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

body[data-theme="light"] #location-map {
  border-color: rgba(0, 0, 0, 0.15);
}

.map-help {
  font-size: 0.8rem;
  color: #cbd5e1;
  margin-bottom: 8px;
}

body[data-theme="light"] .map-help {
  color: #475569;
}

.login-box {
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: thin;
}

.login-box::-webkit-scrollbar {
  width: 5px;
}

.login-box::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.login-box::-webkit-scrollbar-thumb {
  background: #6c63ff;
  border-radius: 10px;
}

body[data-theme="light"] .login-box::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
}
