/* ============================================
   REGISTER.CSS — FABulous  (responsive)
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --bg-dark:       #25342B;
  --bg-card-dark:  #1E1E1E;
  --panel-left:    #4E7A5E;
  --panel-right:   #D9D9D9;
  --text-white:    #FFFFFF;
  --text-dark:     #25342B;
  --text-muted:    rgba(255,255,255,0.75);
  --text-body:     #333333;
  --accent-dark:   #1E1E1E;
  --input-bg:      #EBEBEB;
  --input-border:  #CCCCCC;
  --radius-card:   18px;
  --radius-input:  8px;
  --font-display:  'Josefin Sans', sans-serif;
  --font-body:     'Inter', sans-serif;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  background-color: var(--bg-dark);
  font-family: var(--font-body);
  color: var(--text-white);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---------- Top Nav ---------- */
.topnav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  display: flex;
  align-items: center;
  padding: 0 40px;
  z-index: 10;
  background-color: var(--bg-dark);
}

.nav-logo {
  height: 46px;
  width: auto;
  object-fit: contain;
}


/* ---------- Page Controls ---------- */
.page-controls {
  width: 100%;
  max-width: 840px;
  display: flex;
  justify-content: flex-start;
  padding: 90px 12px 16px;
}

.ctrl-btn {
  background: transparent;
  border: none;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s;
}

.ctrl-btn:hover { opacity: 0.7; }

/* ---------- Card Container ---------- */
@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.card-container {
  width: min(760px, 95vw);
  display: flex;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.45);
  margin: 0;
  animation: cardFadeIn 0.6s ease-out forwards;
}

/* ---------- Left Panel ---------- */
.left-panel {
  width: 360px;
  min-width: 280px;
  background-color: var(--panel-left);
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}


.brand-logo-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
}


.brand-heading {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-white);
  margin-top: 8px;
}

.brand-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
  font-weight: 400;
}

.carousel-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
}

.dot.active { background: var(--text-white); }

/* ---------- Right Panel ---------- */
.right-panel {
  flex: 1;
  background-color: var(--panel-right);
  padding: 28px 36px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.right-panel form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.panel-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 4px;
}

/* Server-side redirect error — hidden until JS sets display:block */
.error-server {
  display: none;
  color: #c0392b;
  font-size: 13px;
  font-weight: 600;
  margin: 0;
  padding: 6px 10px;
  background: rgba(192,57,43,0.08);
  border-radius: 6px;
  border-left: 3px solid #c0392b;
}

.prefill-notice {
  color: #235236;
  background: rgba(119,204,129,0.18);
  border-left-color: #4e7a5e;
}

/* ---------- Name Row ---------- */
.name-row {
  display: flex;
  gap: 10px;
  width: 100%;
}

.input-group { width: 100%; }

.input-group.half { width: calc(50% - 5px); flex-shrink: 0; }

/* ---------- Inputs ---------- */
.input-field {
  width: 100%;
  height: 40px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-input);
  padding: 0 14px;
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--text-body);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-field::placeholder { color: #999; }

.input-field:focus {
  border-color: var(--panel-left);
  box-shadow: 0 0 0 3px rgba(78,122,94,0.18);
}

/* ---------- Show Password ---------- */
.show-password-row {
  display: flex;
  align-items: center;
  min-height: 22px;
  margin: 0 0 4px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-body);
  user-select: none;
}

.checkbox-label input[type="checkbox"] { display: none; }

.custom-checkbox {
  width: 18px;
  height: 18px;
  border: 2px solid #aaa;
  border-radius: 4px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s;
}

.checkbox-label input[type="checkbox"]:checked + .custom-checkbox {
  background: var(--panel-left);
  border-color: var(--panel-left);
}

.checkbox-label input[type="checkbox"]:checked + .custom-checkbox::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
}

/* ---------- Primary Button ---------- */
.btn-primary {
  width: 100%;
  height: 44px;
  background: var(--accent-dark);
  color: var(--text-white);
  border: none;
  border-radius: var(--radius-input);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 4px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  background: #3a3a3a;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}
.btn-primary:active {
  transform: scale(0.97);
  box-shadow: none;
}

/* ---------- Bottom Links ---------- */
.bottom-links {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2px;
}

.bottom-text {
  font-size: 13px;
  color: #666;
  text-align: center;
}

.link-btn {
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s;
  padding: 0;
}

.link-btn:hover { opacity: 0.65; text-decoration: underline; }

/* ---------- Or Divider ---------- */
.or-divider {
  font-size: 13px;
  color: #888;
  text-align: center;
  margin: 4px 0 0;
}

/* ---------- Google Button ---------- */
.btn-google {
  width: 100%;
  height: 50px;
  background: #EBEBEB;
  border: 1px solid #CCCCCC;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-google:hover {
  background: #d4d4d4;
  color: #333333;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}
.btn-google:active { transform: scale(0.97); }

.google-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ---------- Password Strength Checklist ---------- */
.password-checks {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: -4px 0 2px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.check-icon {
  font-size: 13px;
  color: #bbb;
  line-height: 1;
  width: 14px;
  text-align: center;
  flex-shrink: 0;
  transition: color 0.2s;
}

.check-text {
  font-size: 11.5px;
  color: #999;
  transition: color 0.2s;
}

.check-row.met .check-icon {
  color: var(--panel-left);
}

.check-row.met .check-text {
  color: var(--panel-left);
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .card-container { flex-direction: column; }
  .left-panel { width: 100%; min-width: unset; padding: 24px; min-height: 160px; }
  .carousel-dots { position: static; transform: none; margin-top: 12px; }
  .right-panel { padding: 24px; }
  .page-controls { padding: 84px 16px 12px; }
  .name-row { flex-direction: column; }
  .input-group.half { width: 100%; }
}

/* ---------- Auth Page Slider ---------- */
.auth-viewport {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}
.auth-slider {
  display: flex;
  width: 100%;
  flex: 1;
  transition: transform 0.4s ease-in-out;
  transform: translateX(0);
}
.auth-slider-step {
  flex: 0 0 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
