* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    background-color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    color: white;
    user-select: none;
    -webkit-user-select: none; /* Chrome, Safari, Opera */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
}

.nav{
    overflow: hidden;
    position: fixed;
    z-index: 2;
    top: 0;
    width: 100%; 
}

.nav a{
    float: right;
    display: block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

.nav a:hover{
    color: pink;
}

.login-container {
  background: #161622;
  border: 1px solid #fff;
  box-shadow: 0 0 15px #fff;
  border-radius: 10px;
  padding: 30px;
  width: 400px;
  text-align: center;
}

.login-container h1 {
  margin-bottom: 20px;
  color: #fff;
  text-shadow: 0 0 10px #fff;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: flex;
  gap: 20px;
}
.form-row .input-group {
  flex: 1;
}
.form-row .input-group.full {
  flex: 2;
}

.input-group {
  display: flex;
  align-items: center;
  background: #111118;
  border: 1px solid #fff;
  border-radius: 6px;
  padding: 10px;
  box-shadow: 0 0 8px #fff;
}
.input-group i {
  margin-right: 10px;
  color: #fff;
  text-shadow: 0 0 6px #fff;
}
.input-group input {
  flex: 1;
  border: none;
  background: transparent;
  color: #e0e0e0;
  outline: none;
  font-size: 14px;
}
.input-group label {
  font-size: 14px;
  color: #ccc;
}
.input-group input[type="checkbox"] {
  margin-right: 6px;
}

/* 按钮 */
.btn {
  background: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  color: #000;
  transition: background 0.2s;
  box-shadow: 0 0 10px #fff;
}
.btn:hover {
  background: #ccc;
}

/* 按钮 loading 动画 */
.btn.loading {
  pointer-events: none;
  color: transparent;
  position: relative;
}
.btn.loading::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 20px; height: 20px;
  margin: -10px 0 0 -10px;
  border: 3px solid #000;
  border-top: 3px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 注册引导 */
.register-link {
  margin-top: 15px;
  font-size: 14px;
}
.register-link a {
  color: #fff;
  text-decoration: none;
  text-shadow: 0 0 6px #fff;
}
.register-link a:hover {
  text-decoration: underline;
}
