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

:root {
  --orange: #f97316;
  --red: #dc2626;
  --gold: #f59e0b;
  --dark: #0a0a0f;
  --card-bg: rgba(12, 12, 20, 0.96);
  --border: rgba(249, 115, 22, 0.2);
  --text: #e8e8f0;
  --muted: #8888a8;
}

body {
  font-family: 'Outfit', sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #050508;
  padding: 24px;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 80% 20%, rgba(249,115,22,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 70% at 10% 80%, rgba(220,38,38,0.10) 0%, transparent 60%),
    #050508;
  z-index: 0;
}

.register-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 720px;
  animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.register-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(20px);
  box-shadow: 0 40px 80px rgba(0,0,0,0.8);
}

.card-accent-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--orange), var(--gold));
}

.reg-header {
  padding: 32px 40px 24px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.back-link {
  display: inline-block;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
  transition: color 0.2s;
  float: left;
}
.back-link:hover { color: var(--orange); }

.logo-small {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 12px;
  clear: both;
}

.logo-small span {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 900;
  color: var(--orange);
}

.logo-small span:nth-child(even) { color: var(--red); }

.reg-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.5px;
}

.reg-subtitle {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: 0.5px;
}

/* Alert */
.alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 40px;
  font-size: 14px;
  font-weight: 500;
}

.alert-error {
  background: rgba(220,38,38,0.12);
  border-top: 1px solid rgba(220,38,38,0.2);
  border-bottom: 1px solid rgba(220,38,38,0.2);
  color: #fca5a5;
}

.alert-success {
  background: rgba(34,197,94,0.1);
  border-top: 1px solid rgba(34,197,94,0.2);
  border-bottom: 1px solid rgba(34,197,94,0.2);
  color: #86efac;
}

/* Form */
.reg-form {
  padding: 32px 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .reg-form { padding: 24px 24px 28px; }
  .reg-header { padding: 24px 24px 20px; }
}

.field-group { display: flex; flex-direction: column; gap: 8px; }

.field-group label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--muted);
  text-transform: uppercase;
}

.req { color: var(--red); }

.field-group input {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
  width: 100%;
}

.field-group input::placeholder { color: rgba(136,136,168,0.45); }

.field-group input:focus {
  border-color: var(--orange);
  background: rgba(249,115,22,0.04);
  box-shadow: 0 0 0 3px rgba(249,115,22,0.1);
}

/* Password strength */
.pw-strength {
  display: flex;
  align-items: center;
  gap: 12px;
}

.strength-bar {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  overflow: hidden;
}

.strength-fill {
  height: 100%;
  width: 0%;
  border-radius: 4px;
  transition: all 0.3s;
  background: var(--red);
}

#strengthLabel {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  min-width: 60px;
}

/* Submit button */
.btn-register {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  border: none;
  border-radius: 12px;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.25s;
  margin-top: 8px;
}

.btn-register:hover {
  background: linear-gradient(135deg, var(--orange), var(--red));
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(220,38,38,0.4);
}

.btn-icon { font-size: 14px; }

.login-redirect {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  padding-bottom: 28px;
}

.login-redirect a {
  color: var(--orange);
  font-weight: 600;
  text-decoration: none;
}

.login-redirect a:hover { color: var(--gold); }
