@import url("https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&display=swap");

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "DM Sans", system-ui, sans-serif;
  background: linear-gradient(160deg, #161a22 0%, #0a0d12 100%);
  color: #c8c5cc;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.auth-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 320px;
  padding: 2rem;
}

h1 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #eae8ed;
  margin-bottom: 0.5rem;
  text-align: center;
}

.subtitle {
  font-size: 0.7rem;
  color: #605c66;
  margin-bottom: 2rem;
  text-align: center;
}

form { width: 100%; }

.form-group { margin-bottom: 1rem; }

label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #605c66;
  margin-bottom: 0.35rem;
}

input[type="text"],
input[type="password"],
input[type="email"] {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-family: "DM Sans", system-ui, sans-serif;
  outline: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ddd;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

.btn-primary {
  width: 100%;
  padding: 0.65rem;
  border: none;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: "DM Sans", system-ui, sans-serif;
  cursor: pointer;
  margin-top: 0.5rem;
  background: #a5bc39;
  color: #0c0d10;
  transition: background 0.15s;
}

.btn-primary:hover { background: #b5cc48; }

.error {
  color: #ef4444;
  font-size: 0.75rem;
  text-align: center;
  margin-top: 0.75rem;
  min-height: 1.2rem;
}

.message { font-size: 0.8rem; margin-top: 1rem; min-height: 1.2rem; text-align: center; }
.message.success { color: #a5bc39; }
.message.error { color: #ef4444; }

.back-link {
  display: block;
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: #605c66;
  text-decoration: none;
}

.back-link:hover { color: #8b87a0; }
