@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  background-attachment: fixed;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.auth-container {
  width: 100%;
  max-width: 440px;
}

.auth-box,
.auth-container {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.auth-box {
  padding: 36px 28px;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}

.brand svg {
  width: 36px;
  height: 36px;
}

.brand a {
  color: #3ed84b;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.2rem;
}

.auth-box h1,
.auth-container h1 {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 8px;
  color: #fff;
  text-shadow: none;
}

.subtitle {
  text-align: center;
  color: #cfd1e6;
  font-size: 0.92rem;
  margin-bottom: 22px;
}

.form-group {
  margin-bottom: 16px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.88rem;
  color: #e8e9f5;
}

input,
textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(8, 10, 28, 0.45);
  color: #fff;
  font-size: 0.95rem;
  outline: none;
}

input::placeholder,
textarea::placeholder {
  color: #9aa0c4;
}

input:focus,
textarea:focus {
  border-color: #32cd32;
  box-shadow: 0 0 0 3px rgba(50, 205, 50, 0.16);
  background: rgba(8, 10, 28, 0.62);
}

.password-group {
  position: relative;
}

.password-group input {
  padding-right: 46px;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 38px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.toggle-password svg {
  width: 20px;
  height: 20px;
  stroke: #c5c8e0;
}

.toggle-password:hover svg {
  stroke: #fff;
}

.hint {
  font-size: 0.78rem;
  color: #aeb2d0;
  margin: -6px 0 16px;
}

.forgot-password {
  text-align: right;
  margin: 2px 0 16px;
  font-size: 0.88rem;
}

.forgot-password a,
.auth-links a {
  color: #7dffb0;
  text-decoration: none;
  font-weight: 500;
}

.forgot-password a:hover,
.auth-links a:hover {
  color: #fff;
}

.btn-primary {
  width: 100%;
  padding: 13px 18px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #32cd32, #00ff88);
  color: #06210c;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  opacity: 0.94;
}

.auth-links {
  margin-top: 18px;
  text-align: center;
  font-size: 0.92rem;
  color: #cfd1e6;
}

.auth-links a {
  margin-left: 6px;
}

.message-box {
  display: none;
  padding: 12px;
  margin-bottom: 14px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
  font-weight: 600;
}

.message-error {
  display: block;
  background: rgba(255, 80, 80, 0.12);
  color: #ffb4b4;
  border: 1px solid rgba(255, 80, 80, 0.35);
}

.message-success {
  display: block;
  background: rgba(19, 123, 35, 0.18);
  color: #b8f5c4;
  border: 1px solid rgba(19, 123, 35, 0.4);
}

.fade-out {
  opacity: 0;
  transition: opacity 1s ease-out;
}

@media (max-width: 480px) {
  .auth-box,
  .auth-container {
    padding: 26px 18px;
  }

  .auth-box h1,
  .auth-container h1 {
    font-size: 1.3rem;
  }
}