/* register.html — page styles (moved out of an inline <style> for a strict style-src-elem CSP) */
:root {
  --bg:        #f7f5f2;
  --bg-card:   #ffffff;
  --border:    #e8e5e1;
  --border-focus: #1a1a1a;
  --text:      #1a1a1a;
  --text-sec:  #7a7a7a;
  --text-muted:#b0b0b0;
  --accent:    #1a1a1a;
  --danger:    #b53a3a;
  --success:   #2d7a4f;
  --info-bg:   #f5f3f0;
  --info-border: #e0ddd8;
  --font:      'Inter', -apple-system, sans-serif;
  --font-d:    'Outfit', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; }
body {
  min-height: 100%;
  font-family: var(--font);
  color: var(--text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── Page wrapper ────────────────────────────────────────────── */
.reg-page {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 20px 60px;
  background: var(--bg);
}

/* ─── Card ────────────────────────────────────────────────────── */
.reg-card {
  width: 100%;
  max-width: 520px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 36px 40px 40px;
}

/* ─── Header ─────────────────────────────────────────────────── */
.reg-header {
  text-align: center;
  margin-bottom: 24px;
}
.reg-header .brand {
  font-family: var(--font-d);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text);
}
.reg-header .brand-tagline {
  color: var(--text-sec);
  font-size: 14px;
  margin-top: 6px;
  letter-spacing: 0.05em;
}

.reg-title {
  font-family: var(--font-d);
  font-size: 25px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text);
}

/* ─── Info banner ────────────────────────────────────────────── */
.info-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--info-bg);
  border: 1px solid var(--info-border);
  margin-bottom: 28px;
  font-size: 16px;
  color: var(--text-sec);
}
.info-banner svg {
  flex-shrink: 0;
  color: var(--text-muted);
}

/* ─── Form ────────────────────────────────────────────────────── */
.form-group {
  margin-bottom: 24px;
}
.form-label {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}
.form-label .required {
  color: var(--danger);
  margin-left: 2px;
}
.form-input {
  width: 100%;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
  padding: 12px 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  border-radius: 0;
}
.form-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.06);
}
.form-input::placeholder { color: var(--text-muted); }
.form-hint {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 5px;
}

/* ─── Checkbox ─────────────────────────────────────────────────── */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 28px;
}
.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.checkbox-label {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-sec);
}
.checkbox-label a {
  color: #4a7dbb;
  text-decoration: none;
}
.checkbox-label a:hover {
  text-decoration: underline;
}

/* ─── Submit button ────────────────────────────────────────────── */
.submit-btn {
  width: 100%;
  padding: 14px;
  background: var(--text);
  color: #fff;
  border: none;
  border-radius: 0;
  font-family: var(--font-d);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background .2s, transform .1s;
}
.submit-btn:hover {
  background: #333;
}
.submit-btn:active {
  transform: scale(0.99);
}
.submit-btn:disabled {
  background: var(--text-muted);
  cursor: not-allowed;
}

/* ─── Footer note ─────────────────────────────────────────────── */
.reg-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}
.reg-footer a {
  color: #4a7dbb;
  text-decoration: none;
}
.reg-footer a:hover {
  text-decoration: underline;
}

/* ─── Existing account link ───────────────────────────────────── */
.login-link {
  text-align: center;
  margin-top: 16px;
  font-size: 16px;
  color: var(--text-sec);
}
.login-link a {
  color: #4a7dbb;
  text-decoration: none;
  font-weight: 500;
}
.login-link a:hover {
  text-decoration: underline;
}

/* ─── Alert ────────────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  font-size: 16px;
  margin-bottom: 16px;
  border-radius: 0;
}
.alert-error {
  background: #fef0f0;
  border: 1px solid #e8b0b0;
  color: var(--danger);
}
.alert-success {
  background: #f0f8f4;
  border: 1px solid #a8d8b8;
  color: var(--success);
}

/* ─── Field errors ─────────────────────────────────────────────── */
.field-error .form-input,
.field-error input,
.field-error select,
.field-error textarea {
  border-color: var(--danger) !important;
}
.field-error-msg {
  font-size: 14px;
  color: var(--danger);
  margin-top: 5px;
  display: block;
}
@keyframes fieldShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-3px); }
  40%, 80% { transform: translateX(3px); }
}
.field-error { animation: fieldShake 0.35s ease both; }

/* ─── Separator ────────────────────────────────────────────────── */
.form-separator {
  border: none;
  border-top: 1px solid var(--border);
  margin: 8px 0 24px;
}

/* ─── Animation ────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.fade-up { animation: fadeUp .35s ease-out; }

/* ─── Password note ───────────────────────────────────────────── */
.password-note {
  background: var(--info-bg);
  border: 1px solid var(--info-border);
  border-radius: 0;
  padding: 10px 14px;
  font-size: 15px;
  color: var(--text-sec);
  line-height: 1.5;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.password-note svg {
  flex-shrink: 0;
  color: var(--text-muted);
}

/* ─── Responsive ──────────────────────────────────────────────── */
@media (max-width: 560px) {
  .reg-container { padding: 16px 16px 40px; }
  .reg-title { font-size: 23px; }
}
