.login-modal {
  width: 90%;
  max-width: 360px;
}

.auth-input {
  width: 100%;
  box-sizing: border-box;
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  border: 2px solid #8d86c9;
  background-color: #1e1e3f;
  color: #fbf6e9;
  transition: all 0.3s ease;
  line-height: normal;
}

.auth-input:focus {
  outline: none;
  border-color: #aaaaff;
  box-shadow: 0 0 10px rgba(138, 138, 255, 0.4);
}

.auth-input::placeholder {
  color: #b0aee0;
  opacity: 0.7;
}

.login-submit-btn {
  width: 100%;
  background-color: #3a86ff;
  color: #fff;
  padding: 0.8rem;
  border-radius: 12px;
  border: none;
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background-color 0.3s ease;
}

.login-submit-btn:hover {
  background-color: #256dfa;
}

.login-submit-btn:active {
  background-color: #1546ad;
  color: rgba(255, 255, 255, 0.8);
}

.input-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 0.8rem;
}

.auth-label {
  color: #8d86c9;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-left: 4px;
}

.auth-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.auth-footer {
  margin-top: 1.5rem;
  color: #b0aee0;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.auth-switch-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.auth-switch-btn {
  color: #3a86ff;
  background: transparent;
  border: none;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s ease;
}

.auth-switch-btn:hover {
  text-decoration: underline;
}

.signup-only {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.mode-signup .signup-only {
  display: flex;
}

.mode-signup .login-only {
  display: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-separator {
  display: flex;
  align-items: center;
  width: 100%;
  color: rgba(141, 134, 201, 0.5);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.footer-separator::before,
.footer-separator::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(141, 134, 201, 0.15);
}

.footer-separator::before {
  margin-right: 15px;
}

.footer-separator::after {
  margin-left: 15px;
}

.guest-btn {
  background: transparent;
  color: #3a86ff;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.guest-btn:hover {
  color: #fbf6e9;
  background-color: rgba(58, 134, 255, 0.1);
}

.change-password-only {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.mode-change-password .change-password-only {
  display: flex;
}

.mode-change-password .confirm-password-group {
  display: flex;
}

.mode-change-password .login-only,
.mode-change-password .signup-only:not(.confirm-password-group),
.mode-change-password .auth-footer {
  display: none;
}

@media (max-width: 600px) {
  .auth-input {
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
  }

  .auth-footer {
    margin-top: 1rem;
    gap: 12px;
  }

  .login-submit-btn {
    padding: 0.7rem;
  }
}

@media (max-height: 450px) and (orientation: landscape) {
  .auth-form {
    gap: 0.4rem;
  }

  .input-group {
    margin-bottom: 0.3rem;
    gap: 2px;
  }

  .auth-label {
    font-size: 0.7rem;
  }

  .auth-input {
    padding: 0.5rem 0.8rem;
    font-size: 0.9rem;
  }

  .login-submit-btn {
    padding: 0.6rem;
  }

  .auth-footer {
    margin-top: 0.5rem;
    gap: 8px;
  }

  .footer-separator {
    margin: 5px 0;
  }
}
