

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "DM Sans", sans-serif;
  background: var(--light-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* ── Left panel ── */
.panel-left {
  width: 42%;
  background: linear-gradient(150deg, var(--primary) 0%, #2a5298 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.panel-left::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 80px solid rgba(255, 255, 255, 0.05);
  top: -120px;
  left: -120px;
}
.panel-left::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 60px solid rgba(232, 160, 32, 0.12);
  bottom: 60px;
  right: -80px;
}

.brand-logo {
  font-family: "DM Sans", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  position: relative;
  z-index: 1;
}
.brand-logo i {
  color: var(--accent);
  font-size: 1.5rem;
}
.brand-logo span {
  color: var(--accent);
}

.panel-left-content {
  position: relative;
  z-index: 1;
}
.panel-left-content h2 {
  font-family: "Playfair Display", serif;
  font-size: 2.2rem;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 1.2rem;
}
.panel-left-content p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.96rem;
  line-height: 1.7;
  max-width: 340px;
}

.feature-list {
  list-style: none;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}
.feature-list li .icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(232, 160, 32, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-list li .icon-wrap i {
  color: var(--accent);
  font-size: 0.9rem;
}

.panel-left-footer {
  position: relative;
  z-index: 1;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}
.panel-left-footer a {
  color: var(--accent);
  text-decoration: none;
}

/* ── Right panel ── */
.panel-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  overflow-y: auto;
}

.form-box {
  width: 100%;
  max-width: 480px;
}

.form-box-header {
  margin-bottom: 2rem;
}
.form-box-header .step-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.form-box-header h1 {
  font-family: "Playfair Display", serif;
  font-size: 1.9rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.form-box-header p {
  color: var(--text-muted-custom);
  font-size: 0.92rem;
}
.form-box-header p a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.form-box-header p a:hover {
  text-decoration: underline;
}

/* ── Validation summary ── */
.validation-summary-errors {
  background: #fff5f5;
  border: 1px solid #fca5a5;
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
  color: #c0392b;
  font-size: 0.88rem;
  margin-bottom: 1.4rem;
}

/* ── Input fields ── */
.field-row {
  display: flex;
  gap: 1rem;
}
.field-row .field-group {
  flex: 1;
}

.field-group {
  margin-bottom: 1.1rem;
}
.field-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.4rem;
}
.field-group .input-wrap {
  position: relative;
}
.field-group .input-wrap i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted-custom);
  font-size: 0.95rem;
  pointer-events: none;
}
.field-group input {
  width: 100%;
  padding: 0.72rem 1rem 0.72rem 2.5rem;
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  font-size: 0.93rem;
  font-family: "DM Sans", sans-serif;
  color: #1e2d3d;
  background: #fff;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  outline: none;
}
.field-group select {
  width: 100%;
  padding: 0.72rem 2.5rem 0.72rem 2.5rem;
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  font-size: 0.93rem;
  font-family: "DM Sans", sans-serif;
  color: #1e2d3d;
  background: #fff;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  outline: none;
  appearance: none;
  cursor: pointer;
}
.field-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 58, 92, 0.1);
}
.field-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 58, 92, 0.1);
}
.field-group input.input-validation-error {
  border-color: #e74c3c;
}
.field-group select.input-validation-error {
  border-color: #e74c3c;
}
.field-group .field-error {
  font-size: 0.78rem;
  color: #e74c3c;
  margin-top: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.field-group .field-error::before {
  content: "\F62B";
  font-family: "bootstrap-icons";
  font-size: 0.8rem;
}

/* ── Divider ── */
.divider {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 1.5rem 0;
  color: var(--text-muted-custom);
  font-size: 0.82rem;
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

/* ── Submit button ── */
.btn-register {
  width: 100%;
  padding: 0.85rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: "DM Sans", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.15s,
    box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.btn-register:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26, 58, 92, 0.25);
}
.btn-register:active {
  transform: translateY(0);
}

/* ── External login section ── */
.external-section {
  margin-top: 0.25rem;
}
.external-section p {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted-custom);
  margin-bottom: 0.8rem;
}
.external-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.btn-external {
  width: 100%;
  padding: 0.72rem 1rem;
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  background: #fff;
  font-family: "DM Sans", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.btn-external:hover {
  border-color: var(--primary);
  background: #f0f4f9;
}

/* ── Terms notice ── */
.terms-notice {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted-custom);
  margin-top: 1.2rem;
}
.terms-notice a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .panel-left {
    display: none;
  }
  .panel-right {
    padding: 2rem 1.2rem;
  }
}
@media (max-width: 480px) {
  .field-row {
    flex-direction: column;
    gap: 0;
  }
}
