:root {
  --primary: #0d9488;
  --bg-light: #f8fafc;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-light);
  background-image: radial-gradient(circle at 100% 100%, rgba(13, 148, 136, 0.05) 0%, transparent 40%);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  color: var(--text-main);
  padding: 20px;
}

.register-card {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow);
  border: 1px solid #e2e8f0;
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.branding { text-align: center; margin-bottom: 24px; position: relative; }
.back-link { position: absolute; top: -25px; left: 0; font-size: 0.8rem; text-decoration: none; color: var(--primary); font-weight: 700; }

.branding h1 { font-size: 1.75rem; font-weight: 800; letter-spacing: -1px; }
.branding h1 span { color: var(--primary); }
.branding p { color: var(--text-muted); font-size: 0.9rem; margin-top: 5px; }

.input-group { margin-bottom: 18px; }
.input-group label { display: block; font-size: 0.8rem; font-weight: 700; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }

.input-group input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 2px solid #f1f5f9;
  background: #f8fafc;
  font-size: 1rem;
  transition: all 0.2s;
  outline: none;
}

.input-group input:focus { border-color: var(--primary); background: white; }

.password-wrapper { position: relative; display: flex; align-items: center; }
.toggle-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  opacity: 0.6;
}

.submit-btn {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
  margin-top: 10px;
}

.submit-btn:hover { background: #0f766e; transform: translateY(-1px); }

.error-message {
  color: #e11d48;
  font-size: 0.85rem;
  margin-top: 12px;
  text-align: center;
  font-weight: 600;
}

.form-footer { margin-top: 24px; text-align: center; border-top: 1px solid #f1f5f9; pt: 20px; }
.form-footer p { font-size: 0.9rem; color: var(--text-muted); margin-top: 15px; }
.form-footer a { color: var(--primary); text-decoration: none; font-weight: 700; }