/* Auth Modal Styles */
.auth-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.auth-overlay.active {
  opacity: 1;
}

.auth-card {
  width: 90%;
  max-width: 400px;
  background: rgba(40, 40, 45, 0.95);
  border: 1px solid rgba(255, 0, 0, 0.3);
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(255, 0, 0, 0.2);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  position: relative;
}

.auth-overlay.active .auth-card {
  transform: scale(1);
}

.auth-header {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-tab {
  flex: 1;
  padding: 15px 0;
  text-align: center;
  color: #888;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  background: rgba(0, 0, 0, 0.2);
}

.auth-tab.active {
  color: #fff;
  background: transparent;
  border-bottom: 3px solid #f00;
}

.auth-body {
  padding: 30px;
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

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

.auth-input-group {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
}

.auth-input-group label {
  display: inline-block;
  margin: 0 10px 0 0;
  min-width: 70px;
  color: #bbb;
  font-size: 14px;
  text-align: center;
  white-space: nowrap;
}

.auth-input-group input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #fff;
  font-size: 16px;
  outline: none;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.auth-input-group input:focus {
  border-color: #f00;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.2);
}

.auth-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #f00, #900);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
  transition: all 0.3s ease;
  margin-top: 10px;
}

.auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 0, 0, 0.4);
}

.auth-btn:active {
  transform: translateY(0);
}

.auth-remember {
  margin: 12px 0 0px;
  font-size: 14px;
}

.remember-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #bbb;
  user-select: none;
}

.remember-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0 8px 0 0;
  cursor: pointer;
  accent-color: #f00;
}

.remember-label span {
  font-size: 14px;
}

.auth-footer {
  padding: 0 30px 30px;
  text-align: center;
  color: #777;
  font-size: 13px;
}

.auth-footer a {
  color: #f00;
  text-decoration: none;
  margin-left: 5px;
}

.close-auth {
  position: absolute;
  top: 15px;
  right: 15px;
  color: #888;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  z-index: 1;
  transition: color 0.3s;
}

.close-auth:hover {
  color: #fff;
}
