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

:root {
  --rh-bg: #080b12;
  --rh-bg-2: #0d111a;
  --rh-card: rgba(17, 22, 34, .82);
  --rh-card-2: rgba(22, 27, 41, .72);
  --rh-border: rgba(139, 151, 174, .14);
  --rh-text: #eef3fb;
  --rh-muted: #8d98ad;
  --rh-soft: #a8b2c7;
  --rh-primary: #18c78e;
  --rh-primary-2: #1ee6d6;
  --rh-danger: #ff6b7a;
  --rh-warning: #f6c75f;
  --rh-shadow: 0 28px 80px rgba(0, 0, 0, .46);
  --rh-glow: 0 0 44px rgba(24, 199, 142, .16);
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--rh-bg); }
body.rh-auth-body {
  min-height: 100vh;
  margin: 0;
  color: var(--rh-text);
  background:
    radial-gradient(circle at 50% 26%, rgba(24, 199, 142, .09), transparent 27%),
    radial-gradient(circle at 82% 10%, rgba(30, 230, 214, .08), transparent 24%),
    linear-gradient(180deg, #080b12 0%, #090c13 48%, #11141b 100%);
  font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.rh-auth-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.rh-auth-orb {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(24, 199, 142, .20), rgba(24, 199, 142, 0) 68%);
  filter: blur(8px);
  animation: rhFloat 9s ease-in-out infinite;
}
.rh-auth-orb-one { top: 14%; left: -120px; }
.rh-auth-orb-two { right: -150px; bottom: 16%; animation-delay: -4s; background: radial-gradient(circle, rgba(30, 230, 214, .16), rgba(30, 230, 214, 0) 70%); }
.rh-auth-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 28%, transparent 100%);
}

.rh-public-nav {
  position: relative;
  z-index: 4;
  height: 74px;
  border-bottom: 1px solid rgba(139, 151, 174, .10);
  background: rgba(8, 11, 18, .78);
  backdrop-filter: blur(18px);
}
.rh-public-nav__inner {
  width: min(1120px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.rh-brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -.03em; font-size: 24px; }
.rh-brand__mark, .rh-auth-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #06110d;
  background: linear-gradient(135deg, var(--rh-primary), var(--rh-primary-2));
  box-shadow: 0 16px 34px rgba(24, 199, 142, .22), inset 0 1px 0 rgba(255,255,255,.20);
  font-weight: 800;
}
.rh-brand__mark { width: 46px; height: 46px; font-size: 18px; }
.rh-brand__accent { color: var(--rh-primary); }
.rh-nav-menu {
  width: 38px;
  height: 38px;
  border: 0;
  color: var(--rh-text);
  border-radius: 12px;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.rh-nav-menu:hover { background: rgba(255,255,255,.06); }
.rh-nav-menu svg { width: 25px; height: 25px; }

.rh-auth-main {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 74px - 112px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 82px 18px 92px;
}
.rh-auth-shell { width: min(640px, 100%); animation: rhEnter .55s ease both; }
.rh-auth-heading { text-align: center; margin-bottom: 36px; }
.rh-auth-mark {
  width: 68px;
  height: 68px;
  margin: 0 auto 24px;
  font-size: 25px;
  background: rgba(24, 199, 142, .10);
  color: var(--rh-primary);
  border: 1px solid rgba(24, 199, 142, .10);
  box-shadow: var(--rh-glow);
}
.rh-auth-heading h1 {
  margin: 0 0 12px;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: clamp(32px, 6vw, 42px);
  line-height: 1;
  letter-spacing: -.05em;
}
.rh-auth-heading p { margin: 0; color: var(--rh-muted); font-size: clamp(16px, 3.8vw, 20px); }

.rh-auth-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--rh-border);
  border-radius: 19px;
  background: linear-gradient(180deg, rgba(17, 22, 34, .86), rgba(13, 17, 27, .90));
  box-shadow: var(--rh-shadow);
  padding: 34px;
}
.rh-auth-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(24,199,142,.16), transparent 34%, rgba(30,230,214,.10) 100%);
  opacity: .42;
  mask-image: linear-gradient(#000, transparent 42%);
}
.rh-auth-card > * { position: relative; z-index: 1; }

.rh-auth-alert {
  margin: 0 0 16px;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 107, 122, .24);
  color: #ffd7dc;
  background: rgba(255, 107, 122, .10);
  font-size: 14px;
}
.rh-auth-alert ul { margin: 0; padding-left: 18px; }
.rh-auth-alert li + li { margin-top: 4px; }

.rh-auth-form { display: grid; gap: 16px; }
.rh-auth-label {
  display: block;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--rh-muted);
}
.rh-auth-input-wrap { position: relative; }
.rh-auth-icon {
  position: absolute;
  left: 17px;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  color: var(--rh-muted);
  pointer-events: none;
}
.rh-auth-input {
  width: 100%;
  min-height: 58px;
  border: 1px solid transparent;
  border-radius: 15px;
  outline: none;
  background: rgba(43, 42, 55, .92);
  color: var(--rh-text);
  padding: 0 48px 0 52px;
  font-size: 20px;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease, transform .18s ease;
}
.rh-auth-input::placeholder { color: rgba(168, 178, 199, .72); }
.rh-auth-input:focus {
  border-color: rgba(24,199,142,.50);
  background: rgba(43, 45, 58, .98);
  box-shadow: 0 0 0 4px rgba(24,199,142,.10);
  transform: translateY(-1px);
}
.rh-password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--rh-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.rh-password-toggle:hover { color: var(--rh-text); background: rgba(255,255,255,.05); }
.rh-password-toggle svg { width: 20px; height: 20px; }

.rh-auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rh-auth-tab {
  min-height: 54px;
  border-radius: 15px;
  border: 1px solid transparent;
  background: rgba(43, 42, 55, .86);
  color: var(--rh-muted);
  font-weight: 800;
  font-size: 18px;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}
.rh-auth-tab:hover { color: var(--rh-text); transform: translateY(-1px); }
.rh-auth-tab.is-active {
  color: var(--rh-primary);
  border-color: rgba(24, 199, 142, .34);
  background: rgba(24, 199, 142, .10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.rh-auth-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--rh-muted);
  font-size: 14px;
  line-height: 1.35;
}
.rh-auth-check input { width: 22px; height: 22px; margin: 0; accent-color: var(--rh-primary); }
.rh-auth-check a { color: var(--rh-soft); text-decoration: underline; text-decoration-color: rgba(168,178,199,.35); }

.rh-auth-btn {
  min-height: 58px;
  border: 0;
  border-radius: 15px;
  color: #05120d;
  background: linear-gradient(135deg, var(--rh-primary), var(--rh-primary-2));
  font-size: 18px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  box-shadow: 0 18px 42px rgba(24, 199, 142, .24), inset 0 -3px 0 rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.22);
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
.rh-auth-btn:hover { transform: translateY(-2px); filter: brightness(1.04); box-shadow: 0 24px 50px rgba(24,199,142,.30); }
.rh-auth-btn:active { transform: translateY(0); }
.rh-auth-btn svg { width: 22px; height: 22px; transition: transform .18s ease; }
.rh-auth-btn:hover svg { transform: translateX(4px); }

.rh-auth-secondary { text-align: center; margin-top: 25px; color: var(--rh-muted); font-size: 17px; }
.rh-auth-secondary a { color: var(--rh-primary); font-weight: 800; }
.rh-auth-secondary a:hover { color: var(--rh-primary-2); }
.rh-auth-helper { display: flex; justify-content: flex-end; margin-top: -4px; }
.rh-auth-helper a { font-size: 13px; color: var(--rh-muted); }
.rh-auth-helper a:hover { color: var(--rh-primary); }

.rh-auth-footer {
  position: relative;
  z-index: 3;
  min-height: 112px;
  border-top: 1px solid rgba(139,151,174,.14);
  background: rgba(18, 20, 27, .94);
  display: flex;
  align-items: center;
}
.rh-auth-footer__inner { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

@keyframes rhEnter {
  from { opacity: 0; transform: translateY(22px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes rhFloat {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(18px,-20px,0) scale(1.06); }
}

@media (max-width: 720px) {
  .rh-public-nav { height: 92px; }
  .rh-public-nav__inner { width: calc(100% - 44px); }
  .rh-brand { font-size: 25px; }
  .rh-brand__mark { width: 46px; height: 46px; }
  .rh-auth-main {
    min-height: calc(100vh - 92px - 132px);
    align-items: flex-start;
    padding: 112px 18px 86px;
  }
  .rh-auth-shell { width: min(640px, 100%); }
  .rh-auth-heading { margin-bottom: 52px; }
  .rh-auth-card { padding: 34px 34px 36px; }
  .rh-auth-input { font-size: 23px; min-height: 58px; border-radius: 14px; }
  .rh-auth-tabs { gap: 12px; }
  .rh-auth-tab { min-height: 53px; font-size: 17px; }
  .rh-auth-footer { min-height: 132px; }
}

@media (max-width: 440px) {
  .rh-public-nav__inner, .rh-auth-footer__inner { width: calc(100% - 28px); }
  .rh-brand { font-size: 22px; }
  .rh-brand__mark { width: 43px; height: 43px; }
  .rh-auth-main { padding: 100px 12px 70px; }
  .rh-auth-heading { margin-bottom: 40px; }
  .rh-auth-mark { width: 58px; height: 58px; margin-bottom: 22px; }
  .rh-auth-card { padding: 28px 18px; border-radius: 18px; }
  .rh-auth-input { min-height: 58px; font-size: 20px; }
  .rh-auth-tabs { grid-template-columns: 1fr 1fr; }
  .rh-auth-secondary { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.rh-auth-hp {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Profiles Geography v1.2 */
.rh-auth-location-card {
  border: 1px solid rgba(24, 199, 142, .18);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(24, 199, 142, .08), rgba(13, 17, 27, .45));
  padding: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  animation: rhGeoFade .34s ease both;
}

.rh-auth-location-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.rh-auth-location-icon {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--rh-primary);
  background: rgba(24,199,142,.12);
  border: 1px solid rgba(24,199,142,.18);
  flex: 0 0 auto;
}

.rh-auth-location-icon svg { width: 20px; height: 20px; }
.rh-auth-location-head strong { display: block; color: var(--rh-text); font-size: 15px; margin-top: 1px; }
.rh-auth-location-head p { margin: 3px 0 0; color: var(--rh-muted); font-size: 13px; line-height: 1.35; }

.rh-auth-location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rh-auth-field-full { grid-column: 1 / -1; }
.rh-auth-select-wrap { position: relative; }
.rh-auth-select {
  appearance: none;
  -webkit-appearance: none;
  padding-left: 18px;
  padding-right: 44px;
  cursor: pointer;
  font-size: 16px;
}
.rh-auth-select-wrap::after {
  content: '';
  position: absolute;
  right: 18px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid rgba(168,178,199,.8);
  border-bottom: 2px solid rgba(168,178,199,.8);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.rh-auth-select:disabled { opacity: .58; cursor: progress; }

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

@media (max-width: 560px) {
  .rh-auth-location-grid { grid-template-columns: 1fr; }
  .rh-auth-field-full { grid-column: auto; }
  .rh-auth-location-card { padding: 14px; }
}
