html,
body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: linear-gradient(160deg, #180808, #2a1010);
  color: #f5f5f5;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 95vh;
  padding: 1rem;
  box-sizing: border-box;
}

.auth-container {
  position: relative;
  background: rgba(120, 30, 30, 0.2);
  /* ярче и прозрачнее, выделяется на фоне */
  backdrop-filter: blur(12px);
  padding: 2rem;
  border-radius: 128px 128px 16px 16px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
  text-align: center;
  box-sizing: border-box;
  z-index: 1;
}

.auth-logo {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #ff6666;
}

.auth-desc {
  font-size: 0.95rem;
  color: #ffa3a3;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.auth-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.auth-tab {
  padding: 0.5rem 1.2rem;
  cursor: pointer;
  border-radius: 12px;
  margin: 0 0.5rem;
  background: rgba(255, 102, 102, 0.1);
  color: #ffb3b3;
  transition: background 0.2s ease, transform 0.12s ease;
  flex: 1;
  text-align: center;
  user-select: none;
}

.auth-tab:hover {
  background: rgba(255, 102, 102, 0.15);
  transform: translateY(-1px);
}

.auth-tab.active {
  background: rgba(255, 102, 102, 0.2);
  font-weight: 600;
  color: #ff6666;
}

.auth-form {
  display: none;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
}

.auth-form.active {
  display: block;
}

.auth-form label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
  color: #ffc2c2;
}

input {
  width: 100%;
  padding: 0.6rem 0.8rem;
  margin-bottom: 1rem;
  border-radius: 10px;
  border: none;
  background: rgba(255, 102, 102, 0.1);
  color: #fff;
  box-sizing: border-box;
  outline: none;
}

input::placeholder {
  color: #ffb3b3;
}

button {
  width: 100%;
  padding: 0.6rem 0;
  border-radius: 12px;
  border: none;
  background: #ff6666;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.08s ease;
}

button:hover {
  background: #e05555;
  transform: translateY(-1px);
}

.check-group {
  padding-top: 16px;
  display: flex;
  align-items: center;
}

.check-group.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.check-group input[type="checkbox"] {
  width: auto;
}

.check-group input[type="checkbox"]:checked {
  accent-color: #ff6666;
}

.forgot-password {
  text-align: right;
  font-size: 0.85rem;
  margin-top: -0.5rem;
  margin-bottom: 1rem;
  cursor: pointer;
  color: #ffb3b3;
}

.forgot-password:hover {
  color: #fff;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 1rem;
  box-sizing: border-box;
}

.modal-content {
  position: relative;
  background: rgba(120, 30, 30, 0.2);
  padding: 2rem;
  border-radius: 16px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
  box-sizing: border-box;
}

.modal-content h3 {
  margin-top: 0;
  color: #ff6666;
}

.modal-content input {
  width: 100%;
  padding: 0.6rem 0.8rem;
  margin: 1rem 0;
  border-radius: 10px;
  border: none;
  background: rgba(255, 102, 102, 0.1);
  color: #fff;
  box-sizing: border-box;
  outline: none;
}

.modal-content button {
  padding: 0.6rem 1rem;
  border-radius: 12px;
  border: none;
  background: #ff6666;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.modal-content button:hover {
  background: #e05555;
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  cursor: pointer;
  font-size: 1.2rem;
  color: #ffb3b3;
}

.close-modal:hover {
  color: #fff;
}

/* Responsive */
@media (max-width: 500px) {
  .auth-container {
    padding: 1.5rem;
  }

  .auth-tab {
    margin: 0 0.2rem;
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }
}
