@import url('https://fonts.googleapis.com/css2?family=Freeman&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&display=block');
body {
  font-family: "Arial", sans-serif;
  font-family: "Freeman", sans-serif;
  color: var(--defaultForeground);
  background-color: var(--defaultBackground);
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  line-height: 2;
}

.background{
  position: fixed;
  inset: 0;
  background-size: unset;
  background-position: center center;
  background-repeat: repeat;
  overflow-y: hidden;
  background-image: url(../imgs/bg100.png);
  z-index: -1;
}

.background-logo-text{
  font-size: 2em;
  margin: 10px;
  opacity: .3;
  font-family: "Great Vibes", cursive;
}

.user-manager{
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
}

.tabs {
  display: flex;
  justify-content: space-evenly;
  width: 100%;
}

.tab {
  cursor: pointer;
  text-decoration: none;
}

.tab:hover,
.tab.active {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  color: var(--positiveColor);
}

.forms-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.forms-logo-img{
  position: absolute;
  width: 80px;
  left: 0;
  top: 0;
  transform: translate(50%, -50%) rotate(-30deg);
}

form {
  background-color: var(--lighterBackground);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  display: none;
  width: 400px;
}

form>h2{
  margin: 0;
}

form button {
  float: right;
}

form.active {
  display: block;
}

h2 {
  text-align: center;
  color: #333;
}

label {
  display: block;
  margin-bottom: 5px;
  color: #555;
}

input {
  width: 100%;
  padding: 8px;
  margin-bottom: 15px;
  box-sizing: border-box;
}

button {
  background-color: var(--positiveColor);
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  outline: 2px solid var(--defaultForeground);
  outline-offset: 3px;
}

.error-message {
  color: var(--negativeColor);
}

/* 模态窗口样式 */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
/*  background-color: rgba(0, 0, 0, 0.5);*/
}

.modal:before {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: ' ';
    opacity: .8;
    background-color: var(--highlightBackground);
}

.modal-content {
  background-color: var(--defaultBackground);
  margin: 15% auto;
  padding: 20px;
  border: 1px solid var(--lighterBackground);
  width: 80%;
  max-width: 500px;
  text-align: center;
  border-radius: 5px;
}
