* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: sans-serif;
  background-color: #0d0d0d;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  color: white;
  padding: 20px;
}
.auth-container {
  background-color: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  width: 100%;
  max-width: 400px;
  padding: 30px 25px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.9);
  position: relative;
}
.accent-line {
  width: 40px;
  height: 4px;
  background-color: #ffffff;
  border-radius: 2px;
  margin: 0 auto 20px auto;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}
.auth-form {
  display: none;
  flex-direction: column;
  animation: fadeIn 0.4s ease-in-out;
}
.auth-form.active {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.auth-form h2 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 25px;
  color: #ffffff;
  letter-spacing: 1px;
}
.input-group {
  margin-bottom: 20px;
}
.input-group label {
  display: block;
  font-size: 0.75rem;
  color: #9e9e9e;
  margin-bottom: 8px;
  font-weight: bold;
}
.input-wrapper {
  display: flex;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px 15px;
  transition: border 0.3s ease;
}
.input-wrapper:focus-within {
  border-color: #ffffff;
}
.input-icon {
  font-size: 1.1rem;
  color: #757575;
  margin-right: 12px;
}
.input-wrapper input {
  background: none;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 1rem;
  width: 100%;
}
.input-wrapper input::placeholder {
  color: #616161;
}
.toggle-password {
  color: #757575;
  cursor: pointer;
  margin-left: 10px;
}
.btn-primary {
  background: linear-gradient(180deg, #ffffff 0%, #bdbdbd 100%);
  border: none;
  color: #212121;
  font-size: 1rem;
  font-weight: bold;
  padding: 14px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow:
    0 4px 0 #757575,
    0 5px 15px rgba(0, 0, 0, 0.3);
  margin-top: 10px;
  transition: all 0.1s;
}
.btn-primary:active {
  transform: translateY(4px);
  box-shadow:
    0 0 0 #757575,
    0 2px 5px rgba(0, 0, 0, 0.3);
}
.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 25px 0;
  color: #757575;
  font-size: 0.8rem;
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.divider span {
  padding: 0 15px;
}
.btn-secondary {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e0e0e0;
  font-size: 0.95rem;
  font-weight: bold;
  padding: 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: #ffffff;
}
.auth-footer {
  text-align: center;
  margin-top: 30px;
}
.auth-footer a {
  color: #bdbdbd;
  font-size: 0.8rem;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.2s;
}
.auth-footer a:hover {
  color: #ffffff;
}
.auth-footer p {
  color: #757575;
  font-size: 0.7rem;
  margin-top: 8px;
}
