@font-face {
  font-family: yekan;
  src: url("../fonts/iranyekanwebbold.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}
:root {
  --primary-color: #4caf50;
  --secondary-color: #f0f0f0;
  --error-color: #dc3545;
  --text-color: #333;
  --text-light: #999;
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --transition-speed: 0.3s;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  height: 100%;
  width: 100%;
}

body {
  background-color: var(--primary-color);
  font-family: yekan;
  display: flex;
  align-items: center;
  justify-content: center;
}

.circle {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
}

.circle-1 {
  width: 300px;
  height: 300px;
  top: -150px;
  left: -150px;
}

.circle-2 {
  width: 500px;
  height: 500px;
  bottom: -250px;
  right: -250px;
}

.auth-container {
  background-color: white;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  width: 800px;
  max-width: 90%;
  display: flex;
  max-height: 90vh;
}

.auth-sidebar {
  background-color: var(--primary-color);
  color: white;
  padding: 40px;
  width: 40%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.auth-sidebar h2 {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
  position: relative;
}

.auth-sidebar h2:after {
  content: "";
  position: absolute;
  bottom: -10px;
  right: 0;
  width: 40px;
  height: 4px;
  background-color: white;
}

.auth-content {
  padding: 40px;
  width: 60%;
  overflow-y: auto;
  max-height: 90vh;
}

.website-logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: 40px;
}

.website-logo .logo-dot {
  width: 10px;
  height: 10px;
  background-color: white;
  border-radius: 50%;
  margin-left: 5px;
}

.form-group {
  position: relative;
  margin-bottom: 25px;
}

.form-control {
  border: none;
  border-radius: 0;
  border-bottom: 1px solid #ddd;
  padding: 10px 0;
  text-align: right;
}

.form-control::placeholder {
  text-align: right;
}

.form-control:focus {
  box-shadow: none;
  border-color: var(--primary-color);
}

.password-toggle {
  position: absolute;
  left: 0;
  top: 75%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--text-light);
}

.form-label {
  color: #999;
  font-size: 14px;
}

.nav-tabs {
  border: none;
  margin-bottom: 30px;
  justify-content: flex-end;
}

.nav-tabs .nav-link {
  border: none;
  padding: 5px 15px;
  color: #999;
  border-radius: 4px;
}

.nav-tabs .nav-link.active {
  background-color: var(--primary-color);
  color: white;
}

.btn-login {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 30px;
  border-radius: 4px;
  font-weight: bold;
  position: relative;
  overflow: hidden;
}

.btn-login:before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transition: all 0.8s;
}

.btn-login:hover:before {
  left: 100%;
}

.btn-login:hover {
  background-color: #3d8b40;
  color: white;
  box-shadow: 0 4px 10px rgba(76, 175, 80, 0.3);
}

.btn-login.loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: calc(50% - 10px);
  left: calc(50% - 10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.btn-login.loading {
  color: transparent;
}

.btn-login.loading::after {
  display: block;
}

.form-check {
  margin-bottom: 20px;
}

.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.forgot-password {
  text-align: left;
  font-size: 12px;
  margin-bottom: 20px;
}

.forgot-password a {
  color: var(--primary-color);
  text-decoration: none;
}

.forgot-password a:hover {
  color: #3d8b40;
  text-decoration: underline;
}

.toggle-btn {
  position: absolute;
  top: 50%;
  right: -20px;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  text-decoration: none;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  z-index: 10;
}

.alert {
  display: none;
  margin-top: 20px;
}

#recover-form {
  display: none;
  margin-top: 20px;
  animation: fadeInUp 0.4s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-shake {
  animation: shake 0.5s;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-5px);
  }
  20%,
  40%,
  60%,
  80% {
    transform: translateX(5px);
  }
}

@media (max-width: 768px) {
  .circle {
    display: none;
  }
  .auth-container {
    flex-direction: column;
    max-height: 100vh;
    height: 100%;
    max-width: 100%;
    border-radius: 0;
  }

  .auth-sidebar,
  .auth-content {
    width: 100%;
    padding: 30px;
  }

  .auth-sidebar {
    padding-bottom: 40px;
  }

  .toggle-btn {
    display: none;
  }

  html,
  body {
    height: 100%;
    overflow: auto;
  }
}
