:root {
  --primary: #4d7f5e;
  --primary-dark: #3b6649;
  --primary-light: #d6e2db;
  --bg: #f5f0ed;
  --surface: #FFFFFF;
  --text: #1f3627;
  --text-muted: #4B5563;
  --stroke: #c2d1c7;
  --shadow: 0 20px 40px rgba(77, 127, 94, 0.1);
}

* { box-sizing: border-box; scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; font-family: 'Inter', system-ui, -apple-system, sans-serif; color: var(--text); background-color: var(--bg); }

/* Background patterns */
body {
  background-image: radial-gradient(at 0% 0%, var(--primary-light) 0px, transparent 50%),
                    radial-gradient(at 100% 100%, var(--stroke) 0px, transparent 50%);
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  text-align: center;
  padding: 80px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-logo {
  width: 200px;
  height: auto;
  margin-bottom: 24px;
  animation: fadeInDown 0.8s ease-out;
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  margin: 0 0 16px;
  color: var(--primary-dark);
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-description {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.6;
  margin: 0 auto 32px;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-button {
  display: inline-block;
  padding: 18px 36px;
  background-color: var(--primary);
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 16px rgba(77, 127, 94, 0.2);
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 12px 20px rgba(77, 127, 94, 0.3);
}

#formulari-registre {
  padding: 80px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 480px;
  perspective: 1000px;
}

.card {
  background: var(--surface);
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.6);
  position: relative;
  overflow: hidden;
  animation: slideUp 0.6s ease-out forwards;
}

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

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 6px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
}

.logo {
  width: 120px;
  height: auto;
  margin-bottom: 16px;
}

.title {
  font-weight: 800;
  font-size: 24px;
  text-align: center;
  margin: 0 0 8px;
}

.subtitle {
  font-size: 15px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
  margin: 0;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: #FAFAFA;
  color: #1F2937;
  font-size: 15px;
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
}

input:focus {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px var(--primary-light);
}

button[type="submit"] {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 14px;
  background: var(--primary);
  color: white;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 8px 16px rgba(77, 127, 94, 0.2);
  font-family: inherit;
}

button[type="submit"]:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 20px rgba(77, 127, 94, 0.3);
}

button[type="submit"]:active {
  transform: translateY(0);
}

button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.status {
  margin-top: 16px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  min-height: 20px;
}

.success { color: var(--primary-dark); }
.error { color: #DC2626; }
