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

html, body {
  height: 100%;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #e8f5e9;
  background: #050a05;
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Background canvas */
.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.bg-canvas svg {
  width: 100%;
  height: 100%;
}

/* Header */
header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  padding: 24px 32px;
}

.logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #e8f5e9;
  text-decoration: none;
  line-height: 1;
}
.logo span {
  color: #22c55e;
}

/* Main */
main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

/* Card */
.card {
  width: 100%;
  max-width: 400px;
  background: rgba(5, 14, 5, 0.85);
  border: 1px solid rgba(34, 197, 94, 0.18);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6), 0 0 0 0.5px rgba(34, 197, 94, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
}

.card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 32px 32px 24px;
  border-bottom: 1px solid rgba(34, 197, 94, 0.1);
}

.card-icon {
  width: 44px;
  height: 44px;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.card-icon svg {
  width: 22px;
  height: 22px;
}

.card-title {
  font-size: 17px;
  font-weight: 700;
  color: #e8f5e9;
  letter-spacing: -0.2px;
}

.card-subtitle {
  font-size: 13px;
  color: #6b7280;
  text-align: center;
}

/* Form */
form {
  padding: 28px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: #9ca3af;
  letter-spacing: 0.1px;
}

.form-group input {
  width: 100%;
  padding: 11px 14px;
  background: rgba(34, 197, 94, 0.04);
  border: 1px solid rgba(34, 197, 94, 0.15);
  border-radius: 10px;
  color: #e8f5e9;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.form-group input::placeholder {
  color: #374151;
}
.form-group input:focus {
  border-color: rgba(34, 197, 94, 0.5);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

/* Error messages */
.form-errors {
  font-size: 13px;
  color: #f87171;
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.2);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.btn-primary {
  width: 100%;
  padding: 12px 16px;
  background: #22c55e;
  color: #052e16;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  letter-spacing: 0.1px;
  transition: filter 0.15s, transform 0.08s;
  margin-top: 4px;
}
.btn-primary:hover {
  filter: brightness(1.08);
}
.btn-primary:active {
  transform: translateY(1px);
}

/* Footer */
footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 32px;
  font-size: 13px;
  color: #374151;
}

footer a {
  color: #4b5563;
  text-decoration: none;
  transition: color 0.15s;
}
footer a:hover {
  color: #22c55e;
}

.sep {
  opacity: 0.4;
}

@media (max-width: 480px) {
  header { padding: 18px 20px; }
  .card-header { padding: 24px 24px 20px; }
  form { padding: 22px 24px 28px; gap: 16px; }
  footer { padding: 16px 20px; }
}
