.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 2rem;
  background-color: var(--bg-color);
  transition: all 0.3s ease;
}

.login-wrapper {
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  width: 100%;
  max-width: 450px;
}

.error-message {
  color: red;
  font-size: 0.8rem;
  margin-top: 0.5rem;
}


.mon {
  border-radius: 100%;
  display: flex;
  position: relative;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: 0.2s ease-in-out;
  float: right;
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-title {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.login-subtitle {
  color: var(--secondary-text);
  font-size: 0.9rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.input-group label {
  color: var(--label-color);
  font-size: 0.9rem;
  font-weight: 500;
}



.input-group input {
  padding: 0.8rem 1rem;
  border: 1px solid var(--text-color);
  border-radius: 8px;
  background: var(--input-bg);
  color: var(--label-color) !important;
  font-family: 'Vazirmatn', sans-serif;
  transition: all 0.3s ease;
  box-shadow: 5px 5px 10px var(--border-color);
}

.input-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--secondary-text);
  cursor: pointer;
}

.checkbox-container input {
  display: none;
}

.checkmark {
  width: 18px;
  height: 18px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  position: relative;
}

.checkbox-container input:checked ~ .checkmark {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.checkmark:after {
  content: "✓";
  position: absolute;
  display: none;
  color: var(--bg-color);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.8rem;
}

.checkbox-container input:checked ~ .checkmark:after {
  display: block;
}

.forgot-password {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.forgot-password:hover {
  color: var(--primary-hover);
}

.login-btn {
  background: var(--primary-color);
  color: var(--bg-color);
  padding: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 1rem;
  transition:  0.3s ease;
}

.login-btn:hover {
  background: var(--primary-hover);
}

.signup-section {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--secondary-text);
}

.signup-link {
  color: var(--primary-color) !important;
  text-decoration: none;
  margin-right: 0.5rem;
  transition: color 0.3s ease;
}

.signup-link:hover {
  color: var(--primary-hover);
}

:root {
  --bg-color: #ffffff; 
  --text-color: #000000; 
  --label-color: #000000;
  --secondary-text: #555555; 
  --card-bg: #ffffff; 
  --border-color: #dddddd; 
  --input-bg: #ffffff; 
  --primary-color: #000000; 
  --primary-hover: #333333; 
  --form-transition-duration: 0.6s;
  --form-slide-distance: 30px;
  --form-fade-duration: 0.3s;
  --input-transition: 0.3s;
  --button-transition: 0.3s;
  --button-text: #ffffff;
}

.darkmode {
  --bg-color: #000000; 
  --text-color: #ffffff; 
  --label-color: #ffffff;
  --secondary-text: #aaaaaa; 
  --card-bg: #111111; 
  --border-color: #333333; 
  --input-bg: #111111; 
  --primary-color: #ffffff; 
  --primary-hover: #cccccc; 
  --button-text: #000000;

}

#moon2 {
  color: var(--primary-color);
}

#sun2 {
  color: var(--primary-color);
}

.darkmode #moon2 {
  color: var(--primary-color);
}



.darkmode #sun2 {
  color: var(--primary-color);
}

.pass{
  width: 80%;
border-radius: 0px 8px 8px 0px  !important;
}

.toggle-password{
  width: 20%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: transparent;
  border: 1px solid var(--text-color);
  border-radius: 8px 0px 0px 8px !important;

}

.eye{
  display: none;
}
.holder{
/* background-color: aqua; */
display: flex;
}

.error-container {
  margin-top: 5px;
  color: red;
  font-size: 0.8rem;
}
 .history svg{
  color: white !important;
 }

 .arrow-right , .arrow-left  {
  fill: white !important;
}

.auth-btn {
  background: var(--primary-color);
  color: var(--button-text);
  padding: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 1rem;
  transition: all var(--button-transition) ease;
  position: relative;
  overflow: hidden;
}

.auth-btn:hover {
  background: var(--primary-hover);
}

.auth-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.auth-btn:focus:not(:active)::after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  20% {
    transform: scale(25, 25);
    opacity: 0.3;
  }
  100% {
    opacity: 0;
    transform: scale(40, 40);
  }
}

.switch-link {
  color: var(--primary-color);
  text-decoration: none;
  margin-right: 0.5rem;
  transition: color var(--button-transition) ease;
  cursor: pointer;
  position: relative;
}

.switch-link:hover {
  color: var(--primary-hover);
}

.switch-link::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: var(--primary-hover);
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}

.switch-link:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.switch-link {
  color: var(--primary-color);
  text-decoration: none;
  margin-right: 0.5rem;
  transition: color var(--button-transition) ease;
  cursor: pointer;
  position: relative;
}

.switch-link:hover {
  color: var(--primary-hover);
}

.switch-link::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: var(--primary-hover);
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}

.switch-link:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}
@media (max-width: 480px) {
  .signup-wrapper {
    padding: 1.5rem;
    margin: 1rem;
  }
  
  

  a{
    font-size: smaller !important;
  }

  .signup-section {
    font-size: smaller !important;
  }
}

html, body {
  font-family: 'Vazirmatn', sans-serif !important;
}
