/* Register page — TitanVista gold/dark theme, split layout */

.register-body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-primary, #050505);
  overflow-x: hidden;
}

.reg-layout {
  display: grid;
  grid-template-columns: minmax(300px, 1.1fr) minmax(340px, 1fr);
  min-height: 100vh;
  width: 100%;
}

/* ---- Left illustration sidebar ---- */
.reg-sidebar {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% 70%, rgba(212, 175, 55, 0.18) 0%, transparent 65%),
    linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
  overflow: hidden;
  min-height: 100vh;
  border-right: 1px solid var(--border-color, rgba(212, 175, 55, 0.2));
}

.reg-sidebar-glow {
  position: absolute;
  left: 50%;
  bottom: 18%;
  transform: translateX(-50%);
  width: 70%;
  height: 45%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-gold, rgba(212, 175, 55, 0.3)) 0%, transparent 70%);
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
}

.reg-sidebar-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  display: block;
  user-select: none;
  pointer-events: none;
  filter: drop-shadow(0 12px 40px rgba(212, 175, 55, 0.2));
}

/* ---- Right form panel ---- */
.reg-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  background:
    radial-gradient(700px 400px at 85% 15%, var(--glow-gold-soft, rgba(212, 175, 55, 0.12)) 0%, transparent 55%),
    radial-gradient(500px 350px at 10% 90%, rgba(155, 107, 24, 0.1) 0%, transparent 50%),
    var(--bg-primary, #050505);
}

.reg-panel-inner {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 36px 32px;
  background: var(--bg-card, rgba(19, 19, 19, 0.9));
  border: 1px solid var(--border-color, rgba(212, 175, 55, 0.2));
  border-radius: var(--radius-lg, 24px);
  box-shadow: var(--shadow-lg, 0 8px 32px rgba(0, 0, 0, 0.5));
  backdrop-filter: blur(12px);
}

.reg-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 10px;
  width: 100%;
  text-align: center;
}

.reg-brand-logo {
  width: 68px;
  height: 68px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.35));
}

.reg-brand-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  align-items: center;
  text-align: center;
}

.reg-brand-title {
  font-family: var(--font-display, Poppins, sans-serif);
  font-size: clamp(2.6rem, 7vw, 3.6rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 0.95;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  white-space: nowrap;
  position: relative;
  /* Glitch / highlight like reference */
  text-shadow:
    -2px 0 0 rgba(0, 229, 255, 0.85),
    2px 0 0 rgba(255, 0, 170, 0.75),
    0 0 18px rgba(255, 255, 255, 0.35);
}

.reg-brand-tag {
  display: block;
  width: fit-content;
  max-width: 100%;
  font-size: clamp(0.7rem, 2vw, 0.9rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  font-weight: 500;
  -webkit-text-fill-color: #ffffff;
  line-height: 1.3;
  white-space: nowrap;
  opacity: 0.95;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.reg-intro {
  margin: -4px 0 6px;
  font-size: 0.875rem;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
  width: 100%;
}

.reg-divider {
  text-align: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.8rem;
  margin: 4px 0;
  opacity: 0.9;
}

.reg-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reg-field label {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
}

.reg-input {
  width: 100%;
  height: 48px;
  border-radius: var(--radius-md, 10px);
  border: 1px solid var(--border-color, rgba(212, 175, 55, 0.2));
  padding: 0 16px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--bg-surface, #1a1a1a);
  color: var(--text-primary, #fff);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.reg-input::placeholder {
  color: var(--text-tertiary, rgba(255, 255, 255, 0.4));
}

.reg-input:focus {
  border-color: var(--primary, #D4AF37);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.reg-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 48px;
  border-radius: var(--radius-md, 10px);
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.reg-btn:hover {
  transform: translateY(-2px);
}

.reg-btn:active {
  transform: translateY(0) scale(0.99);
}

.reg-btn-primary {
  border: none;
  color: #050505;
  background: var(--brand-gradient, linear-gradient(135deg, #9B6B18, #D4AF37, #F4C542));
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.35);
}

.reg-btn-primary:hover {
  box-shadow: 0 6px 28px rgba(212, 175, 55, 0.5);
  filter: brightness(1.05);
}

.reg-btn-primary.is-connected {
  color: #050505;
  background: var(--brand-gradient, linear-gradient(135deg, #9B6B18, #D4AF37, #F4C542));
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.35);
}

.reg-btn-outline {
  border: 1px solid var(--border-color-light, rgba(212, 175, 55, 0.3));
  color: var(--text-primary, #fff);
  background: transparent;
}

.reg-btn-outline:hover {
  background: var(--glass-bg, rgba(212, 175, 55, 0.05));
  border-color: var(--primary, #D4AF37);
  color: var(--primary-light, #F4C542);
}

.reg-status {
  text-align: center;
  padding: 8px 0 0;
  color: #ffffff;
  font-weight: 700;
}

.reg-footer-link {
  text-align: center;
  margin: 6px 0 0;
  font-size: 0.875rem;
  color: #ffffff;
  font-weight: 700;
}

.reg-footer-link a {
  color: #F4C542;
  font-weight: 800;
  text-decoration: none;
}

.reg-footer-link a:hover {
  text-decoration: underline;
  color: #FFD700;
}

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .reg-layout {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(240px, 36vh) 1fr;
  }

  .reg-sidebar {
    min-height: 240px;
    max-height: 36vh;
    border-right: none;
    border-bottom: 1px solid var(--border-color, rgba(212, 175, 55, 0.2));
  }

  .reg-sidebar-img {
    object-position: center center;
    max-width: 420px;
  }

  .reg-panel {
    padding: 28px 20px 40px;
    align-items: flex-start;
  }

  .reg-panel-inner {
    max-width: 440px;
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  .reg-layout {
    grid-template-rows: minmax(200px, 30vh) 1fr;
  }

  .reg-sidebar {
    min-height: 200px;
    max-height: 30vh;
  }

  .reg-panel {
    padding: 20px 16px 32px;
  }

  .reg-panel-inner {
    padding: 28px 20px;
    gap: 12px;
    border-radius: var(--radius, 16px);
  }

  .reg-brand {
    margin-bottom: 4px;
  }

  .reg-brand-logo {
    width: 58px;
    height: 58px;
  }

  .reg-brand-title {
    font-size: 2.35rem;
    font-weight: 900;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    text-shadow:
      -1.5px 0 0 rgba(0, 229, 255, 0.85),
      1.5px 0 0 rgba(255, 0, 170, 0.75),
      0 0 14px rgba(255, 255, 255, 0.3);
  }

  .reg-brand-tag {
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
  }

  .reg-btn,
  .reg-input {
    height: 46px;
  }
}

@media (max-width: 380px) {
  .reg-sidebar {
    max-height: 22vh;
    min-height: 140px;
  }

  .reg-layout {
    grid-template-rows: minmax(140px, 22vh) 1fr;
  }
}
