@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* --- Page Reset & Wrapper --- */
html, body#page-local-hivegenius-register {
  background: #ffffff !important;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  height: 100vh !important;
  margin: 0 !important;
  min-height: 100vh !important;
  overflow: hidden !important;
  padding: 0 !important;
  width: 100vw !important;
}

body#page-local-hivegenius-register #page,
body#page-local-hivegenius-register #page-wrapper,
body#page-local-hivegenius-register #page-content,
body#page-local-hivegenius-register #region-main,
body#page-local-hivegenius-register .main-inner {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
  max-width: none !important;
  min-height: 100vh !important;
  padding: 0 !important;
  width: 100% !important;
}

body#page-local-hivegenius-register #page-header,
body#page-local-hivegenius-register #page-footer,
body#page-local-hivegenius-register .navbar,
body#page-local-hivegenius-register .secondary-navigation {
  display: none !important;
}

/* --- Main Split Screen Shell --- */
.hg-reg-shell {
  background: #ffffff;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 480px 1fr;
  height: 100vh;
  inset: 0;
  min-height: 0;
  position: fixed;
  width: 100vw;
  z-index: 99999;
}

/* --- Left Column: Registration Panel --- */
.hg-reg-panel {
  background: #ffffff;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  height: 100vh;
  justify-content: space-between;
  min-width: 0;
  overflow-y: auto;
  padding: 32px 42px;
  position: relative;
  width: 480px;
  z-index: 2;
}

/* Brand Header */
.hg-reg-brand-header {
  align-items: center;
  display: flex;
  justify-content: flex-start;
  margin-bottom: 12px;
}

.hg-reg-logo-link {
  align-items: center;
  display: inline-flex;
  gap: 12px;
  text-decoration: none;
}

.hg-reg-logo-badge {
  display: block;
  height: 38px;
  object-fit: contain;
  width: auto;
}

.hg-reg-brand-title {
  color: #0f172a;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hg-reg-brand-accent {
  color: #ffb800;
}

/* Central Form Container */
.hg-reg-form-area {
  margin: auto 0;
  padding: 10px 0;
  width: 100%;
}

.hg-reg-heading-wrap {
  margin-bottom: 20px;
}

.hg-reg-role-pill {
  align-items: center;
  background: #f0edff;
  border-radius: 999px;
  color: #6544d1;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  gap: 6px;
  margin-bottom: 10px;
  padding: 4px 12px;
}

.hg-reg-title {
  color: #111827;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 6px 0;
}

.hg-reg-subtitle {
  color: #64748b;
  font-size: 14px;
  line-height: 1.45;
  margin: 0;
}

/* Alerts */
.hg-reg-alerts-wrap {
  margin-bottom: 18px;
  width: 100%;
}

.hg-reg-alert {
  align-items: center;
  border-radius: 12px;
  display: flex;
  font-size: 13.5px;
  font-weight: 600;
  gap: 10px;
  line-height: 1.4;
  margin-bottom: 10px;
  padding: 12px 16px;
}

.hg-reg-alert-danger {
  background-color: #fef2f2;
  border: 1.5px solid #fecaca;
  color: #991b1b;
}

.hg-reg-alert-success {
  background-color: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  color: #166534;
}

/* Form Groups & Inputs */
.hg-reg-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.hg-form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  position: relative;
  width: 100%;
}

.hg-field-label {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hg-input-wrap {
  position: relative;
  width: 100%;
}

.hg-input {
  background-color: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  box-sizing: border-box;
  color: #0f172a;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 500;
  height: 46px;
  outline: none;
  padding: 0 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.hg-input:hover {
  border-color: #cbd5e1;
}

.hg-input:focus {
  border-color: #1f4fc1;
  box-shadow: 0 0 0 4px rgba(31, 79, 193, 0.12);
}

.hg-password-wrap {
  position: relative;
}

.hg-password-wrap .hg-input {
  padding-right: 48px;
}

.hg-eye-toggle {
  align-items: center;
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  height: 100%;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 12px;
  top: 0;
  transition: color 0.15s ease;
  width: 32px;
}

.hg-eye-toggle:hover {
  color: #475569;
}

.hg-field-hint {
  color: #838e9e;
  font-size: 11.5px;
  line-height: 1.4;
  margin-top: 2px;
}

/* Password Strength Meter */
.hg-strength-meter {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
}

.hg-strength-bar {
  background-color: #e2e8f0;
  border-radius: 999px;
  height: 4px;
  overflow: hidden;
  width: 100%;
}

.hg-strength-fill {
  border-radius: 999px;
  height: 100%;
  transition: width 0.3s ease, background-color 0.3s ease;
  width: 0%;
}

.hg-strength-text {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
}

/* Submit Button */
.hg-reg-submit-btn {
  align-items: center;
  background: linear-gradient(135deg, #1f4fc1 0%, #6544d1 100%);
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(31, 79, 193, 0.28);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  height: 48px;
  justify-content: center;
  margin-top: 6px;
  outline: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  width: 100%;
}

.hg-reg-submit-btn:hover {
  box-shadow: 0 6px 20px rgba(31, 79, 193, 0.38);
  transform: translateY(-1px);
}

.hg-reg-submit-btn:active {
  transform: translateY(0);
}

.hg-reg-terms {
  color: #94a3b8;
  font-size: 11.5px;
  line-height: 1.45;
  margin: 4px 0 0;
  text-align: center;
}

/* Switch to login wrap */
.hg-reg-switch-wrap {
  align-items: center;
  display: flex;
  font-size: 13.5px;
  font-weight: 500;
  gap: 6px;
  justify-content: center;
  margin-top: 18px;
}

.hg-reg-login-link {
  color: #1f4fc1;
  font-weight: 700;
  text-decoration: none;
}

.hg-reg-login-link:hover {
  text-decoration: underline;
}

/* Footer Area */
.hg-reg-footer-area {
  align-items: center;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  padding-top: 18px;
}

.hg-reg-back-home {
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.hg-reg-back-home:hover {
  color: #0f172a;
}

.hg-reg-copyright {
  color: #94a3b8;
  font-size: 12px;
}

/* --- State: Success Confirmation Card --- */
.hg-reg-success-card {
  align-items: center;
  display: flex;
  flex-direction: column;
  margin: auto 0;
  padding: 10px 0;
  text-align: center;
  width: 100%;
}

.hg-reg-success-icon-wrap {
  margin-bottom: 16px;
}

.hg-reg-success-circle {
  align-items: center;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 50%;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.35);
  color: #ffffff;
  display: flex;
  height: 72px;
  justify-content: center;
  width: 72px;
}

.hg-reg-success-title {
  color: #0f172a;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 10px 0;
}

.hg-reg-success-desc {
  color: #475569;
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0 0 20px 0;
}

.hg-reg-highlight-email {
  background: #f1f5f9;
  border-radius: 6px;
  color: #1f4fc1;
  display: inline-block;
  font-size: 15px;
  margin-top: 4px;
  padding: 2px 8px;
}

.hg-reg-info-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 22px;
  padding: 16px;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
}

.hg-reg-info-item {
  align-items: flex-start;
  color: #475569;
  display: flex;
  font-size: 13px;
  gap: 10px;
  line-height: 1.5;
}

.hg-reg-info-badge {
  align-items: center;
  background: #1f4fc1;
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  height: 20px;
  justify-content: center;
  width: 20px;
}

.hg-reg-success-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
  width: 100%;
}

.hg-btn-primary {
  align-items: center;
  background: linear-gradient(135deg, #ff7a00 0%, #ff9f43 100%);
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(255, 122, 0, 0.3);
  color: #ffffff;
  display: flex;
  font-size: 15px;
  font-weight: 700;
  height: 46px;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.15s ease;
  width: 100%;
}

.hg-btn-primary:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.hg-btn-secondary {
  align-items: center;
  background: #f1f5f9;
  border-radius: 12px;
  color: #475569;
  display: flex;
  font-size: 14px;
  font-weight: 600;
  height: 42px;
  justify-content: center;
  text-decoration: none;
  width: 100%;
}

.hg-btn-secondary:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.hg-reg-resend-form {
  align-items: center;
  display: flex;
  font-size: 13px;
  gap: 6px;
  justify-content: center;
  margin-bottom: 14px;
}

.hg-reg-resend-text {
  color: #64748b;
}

.hg-reg-resend-btn {
  background: none;
  border: none;
  color: #1f4fc1;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 0;
  text-decoration: underline;
}

.hg-reg-dev-box {
  background: #fffbeb;
  border: 1px dashed #f59e0b;
  border-radius: 10px;
  box-sizing: border-box;
  margin-top: 10px;
  padding: 12px;
  text-align: left;
  width: 100%;
}

.hg-reg-dev-header {
  color: #b45309;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 4px;
}

.hg-reg-dev-note {
  color: #78350f;
  font-size: 11.5px;
  line-height: 1.4;
  margin: 0 0 6px 0;
}

.hg-reg-dev-link {
  color: #1f4fc1;
  display: block;
  font-size: 12px;
  font-weight: 700;
  word-break: break-all;
}

/* --- Right Column: Hero Stage Illustration --- */
.hg-reg-hero {
  align-items: center;
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 255, 255, .16), transparent 23%),
    radial-gradient(circle at 86% 20%, rgba(255, 255, 255, .12), transparent 20%),
    linear-gradient(135deg, #1f4fc1 0%, #6544d1 50%, #8d4dde 100%);
  display: flex;
  flex-direction: column;
  height: 100vh;
  justify-content: center;
  overflow: hidden;
  position: relative;
  user-select: none;
  width: 100%;
}

.hg-reg-hero-stage {
  height: 520px;
  max-width: 600px;
  position: relative;
  width: 80%;
}

.hg-reg-item {
  object-fit: contain;
  pointer-events: none;
  position: absolute;
}

.hg-item-robot {
  animation: hgFloat 4s ease-in-out infinite;
  height: 140px;
  left: 20%;
  top: 10%;
  width: 140px;
  z-index: 4;
}

.hg-item-boy {
  animation: hgFloat 4.5s ease-in-out infinite 0.5s;
  bottom: 12%;
  height: 180px;
  left: 12%;
  width: 180px;
  z-index: 5;
}

.hg-item-girl {
  animation: hgFloat 4.2s ease-in-out infinite 1s;
  bottom: 15%;
  height: 170px;
  right: 14%;
  width: 170px;
  z-index: 5;
}

.hg-item-alien {
  animation: hgFloat 3.8s ease-in-out infinite 1.5s;
  height: 110px;
  right: 18%;
  top: 14%;
  width: 110px;
  z-index: 4;
}

.hg-item-knight {
  animation: hgFloat 5s ease-in-out infinite 0.8s;
  height: 90px;
  left: 45%;
  top: 40%;
  width: 90px;
  z-index: 3;
}

.hg-item-star {
  animation: hgTwinkle 2.5s ease-in-out infinite;
  height: 48px;
  left: 8%;
  top: 35%;
  width: 48px;
}

.hg-item-heart {
  animation: hgTwinkle 3s ease-in-out infinite 0.7s;
  height: 42px;
  right: 8%;
  top: 45%;
  width: 42px;
}

.hg-item-tip {
  animation: hgFloat 3.5s ease-in-out infinite 1.2s;
  bottom: 40%;
  height: 52px;
  right: 42%;
  width: 52px;
}

.hg-reg-hero-badge {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  color: #ffffff;
  margin-top: -20px;
  max-width: 420px;
  padding: 18px 24px;
  text-align: center;
  z-index: 10;
}

.hg-reg-hero-badge h3 {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 6px 0;
}

.hg-reg-hero-badge p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
}

@keyframes hgFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-14px);
  }
}

@keyframes hgTwinkle {
  0%, 100% {
    opacity: 0.7;
    transform: scale(0.95);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

/* --- Responsive Media Queries --- */
@media (max-width: 960px) {
  .hg-reg-shell {
    grid-template-columns: 1fr;
  }

  .hg-reg-panel {
    margin: 0 auto;
    max-width: 520px;
    padding: 24px 20px;
    width: 100%;
  }

  .hg-reg-hero {
    display: none;
  }
}

@media (max-width: 480px) {
  .hg-reg-panel {
    padding: 18px 16px;
  }

  .hg-reg-title {
    font-size: 22px;
  }
}
