body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Split Layout */
.register-wrapper {
  flex: 1;
  display: flex;
  min-height: 100vh;
}

/* Left decorative panel */
.panel-left {
  flex: 0 0 780px;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
}

.panel-left::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 20% 50%,
      rgba(184, 147, 90, 0.18) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse at 80% 20%,
      rgba(184, 147, 90, 0.1) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.cross-deco {
  position: absolute;
  opacity: 0.05;
  font-size: 26rem;
  color: var(--gold);
  line-height: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  user-select: none;
}

.panel-brand {
  font-family: 'Roboto', sans-serif;
  color: var(--cream);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  text-align: center;
  position: relative;
  z-index: 1;
  line-height: 1.2;
}

.panel-brand span {
  color: var(--gold-light);
}

.panel-divider {
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin: 1.4rem auto;
  position: relative;
  z-index: 1;
}

.panel-tagline {
  color: rgba(249, 245, 239, 0.55);
  font-size: 0.9rem;
  font-weight: 300;
  text-align: center;
  position: relative;
  z-index: 1;
  letter-spacing: 0.03em;
  line-height: 1.7;
  max-width: 260px;
}

.panel-steps {
  position: relative;
  z-index: 1;
  margin-top: 2.5rem;
  width: 100%;
}

.panel-step {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-bottom: 1.4rem;
}

.panel-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.panel-step-text {
  color: rgba(249, 245, 239, 0.5);
  font-size: 0.82rem;
  line-height: 1.55;
}

.panel-step-text strong {
  display: block;
  color: rgba(249, 245, 239, 0.85);
  font-weight: 500;
  margin-bottom: 1px;
}

.panel-quote {
  color: rgba(249, 245, 239, 0.28);
  font-size: 0.78rem;
  font-style: italic;
  font-family: 'Roboto', sans-serif;
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 260px;
  margin-top: 2.5rem;
  line-height: 1.8;
}

/* Right form panel */
.panel-right {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2.5rem 2rem;
  background: var(--surface);
  overflow-y: auto;
}

.register-card {
  width: 100%;
  max-width: 500px;
  padding: 0.5rem 0 2rem;
  animation: fadeUp 0.5s ease both;
}

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

.register-card-title {
  font-family: 'Roboto', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.3rem;
}

.register-card-sub {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 2rem;
}

/* Two-column grid for form rows */
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}

/* Inputs & selects */
.form-select {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0.68rem 1rem;
  font-size: 0.93rem;
  font-family: 'Roboto', sans-serif;
  background: var(--cream);
  color: var(--ink);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 147, 90, 0.12);
  background: #fff;
  outline: none;
}

.input-wrapper .form-select {
  padding-left: 2.6rem;
}



/* Strength bar */
.strength-wrap {
  margin-top: 0.45rem;
  height: 4px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.strength-bar {
  height: 100%;
  width: 0;
  border-radius: 4px;
  transition:
    width 0.3s,
    background 0.3s;
}

.strength-label {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.3rem;
}

/* Error / success inline text */
.field-error {
  font-size: 0.78rem;
  color: var(--error);
  margin-top: 0.3rem;
  display: none;
}

/* Register button */
.btn-register {
  background: var(--ink);
  color: var(--cream);
  border: none;
  border-radius: 8px;
  padding: 0.78rem 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: 'Roboto', sans-serif;
  letter-spacing: 0.02em;
  width: 100%;
  transition:
    background 0.2s,
    transform 0.15s;
}

.btn-register:hover {
  background: #2e2823;
  transform: translateY(-1px);
  color: var(--gold-light);
}

.btn-register:active {
  transform: translateY(0);
}
.btn-register:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Info note */
.info-note {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  background: rgba(184, 147, 90, 0.08);
  border: 1px solid rgba(184, 147, 90, 0.25);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  margin-top: 1.4rem;
}

.info-note i {
  color: var(--gold);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.info-note-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.15rem;
}

.info-note-text {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Login link */
.login-text {
  font-size: 0.875rem;
  color: var(--muted);
  text-align: center;
  margin-top: 1.4rem;
}

.login-text a {
  color: var(--gold);
  font-weight: 500;
  text-decoration: none;
}

.login-text a:hover {
  text-decoration: underline;
}

/* Alert */
.alert-register {
  display: none;
  border-radius: 8px;
  font-size: 0.875rem;
  padding: 0.65rem 1rem;
  margin-bottom: 1.2rem;
}

/* Responsive */
@media (max-width: 991.98px) {
  .panel-left {
    flex: 0 0 300px;
  }
}

@media (max-width: 767.98px) {
  .register-wrapper {
    flex-direction: column;
  }

  .panel-left {
    flex: none;
    padding: 2rem 1.5rem;
  }

  .cross-deco {
    font-size: 12rem;
  }
  .panel-brand {
    font-size: 1.7rem;
  }
  .panel-steps,
  .panel-quote {
    display: none;
  }

  .panel-right {
    flex: none;
    padding: 2rem 1.25rem;
    align-items: flex-start;
  }

  .form-row-2 {
    grid-template-columns: 1fr;
  }
}

/* Custom Dropdown */
.custom-select-wrapper {
  position: relative;
}
.custom-options-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-top: 4px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.custom-options-list.show {
  display: block;
}
.custom-option {
  padding: 10px 15px;
  cursor: pointer;
  transition: background 0.2s;
}
.custom-option:hover {
  background: #f1f3f5;
}
.clear-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #999;
  font-size: 1.1rem;
  z-index: 10;
  background: transparent;
}
.clear-icon:hover {
  color: #e74c3c;
}
.custom-select-input {
  padding-right: 40px !important;
}
