.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  display: none;
}

.modal[style*="display: block"] {
  display: flex !important;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  width: 90%;
  max-width: 400px;
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.close {
  color: #aaa;
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: black;
}

.auth-tabs {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 1px solid #ddd;
}

.tab-btn {
  flex: 1;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
}

.tab-btn.active {
  border-bottom: 2px solid var(--accent-color);
  color: var(--accent-color);
  font-weight: bold;
}

.tab-btn:hover {
  background: #f5f5f5;
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

.auth-form h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}

.auth-form input,
.auth-form select {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 16px;
  transition: border-color 0.3s;
  background: white;
}

.auth-form select {
  cursor: pointer;
}

.auth-form input:focus,
.auth-form select:focus {
  outline: none;
  border-color: var(--accent-color);
}

.auth-form button {
  width: 100%;
  padding: 12px;
  background: var(--accent-color);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 15px;
  font-size: 16px;
  transition: background 0.3s;
}

.auth-form button:hover {
  background: #0d8a6d;
}

@media (max-width: 768px) {
  .modal-content {
    margin: 20px;
    padding: 20px;
  }

  .auth-tabs {
    flex-direction: column;
  }

  .tab-btn {
    text-align: center;
    border-bottom: none;
    border-left: 2px solid transparent;
  }

  .tab-btn.active {
    border-bottom: none;
    border-left: 2px solid var(--accent-color);
  }
}