:root {
  --navy: #1f5a37;
  --navy2: #0c2e1b;
  --navy-deep: #0a2013;
  --blue: #2d7a4f;
  --blue-lt: #edf7f1;
  --white: #ffffff;
  --gray50: #f7f9f8;
  --gray100: #eef1ef;
  --gray200: #dde3de;
  --gray300: #c8ecd5;
  --gray400: #8fa898;
  --gray600: #445c4a;
  --gray800: #1a2b1e;
  --green: #16a34a;
  --red: #dc2626;
  --radius: 10px;
  --radius-lg: 20px;
  --shadow: 0 1px 3px rgba(12, 46, 27, .08), 0 4px 16px rgba(12, 46, 27, .06);
  --shadow-lg: 0 8px 40px rgba(12, 46, 27, .12);
  --shadow-xl: 0 20px 60px rgba(12, 46, 27, .18);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--gray50);
  color: var(--gray800);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

/* LAYOUT */
.register-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* LEFT PANEL (Brand) */
.brand-panel {
  background: var(--navy-deep);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px;
  overflow: hidden;
}

.brand-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(45, 122, 79, .15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(45, 122, 79, .08) 0%, transparent 40%);
  pointer-events: none;
}

.grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.geo-shape {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 4px;
  pointer-events: none;
}

.geo-1 {
  width: 200px;
  height: 200px;
  top: 15%;
  right: 10%;
  transform: rotate(15deg);
  animation: float1 20s ease-in-out infinite;
}

.geo-2 {
  width: 120px;
  height: 120px;
  bottom: 25%;
  left: 8%;
  transform: rotate(-10deg);
  border-radius: 50%;
  animation: float2 15s ease-in-out infinite;
}

.geo-3 {
  width: 80px;
  height: 80px;
  top: 55%;
  right: 30%;
  transform: rotate(45deg);
  animation: float3 18s ease-in-out infinite;
}

@keyframes float1 {

  0%,
  100% {
    transform: rotate(15deg) translateY(0)
  }

  50% {
    transform: rotate(18deg) translateY(-20px)
  }
}

@keyframes float2 {

  0%,
  100% {
    transform: rotate(-10deg) translateX(0)
  }

  50% {
    transform: rotate(-7deg) translateX(15px)
  }
}

@keyframes float3 {

  0%,
  100% {
    transform: rotate(45deg) translateY(0)
  }

  50% {
    transform: rotate(48deg) translateY(-12px)
  }
}

.brand-top {
  position: relative;
  z-index: 2;
}

.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-bottom: 4px;
}
.brand-logo-wordmark {
  display: block;
  height: clamp(34px, 3vw, 44px);
  width: auto;
  max-width: min(230px, 42vw);
}
.brand-logo-wordmark-on-dark {
  filter: brightness(0) invert(1) drop-shadow(0 8px 20px rgba(0, 0, 0, .22));
}

.brand-content {
  position: relative;
  z-index: 2;
  max-width: 400px;
}

.brand-content h1 {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -.5px;
  margin-bottom: 16px;
}

.brand-content h1 span {
  background: linear-gradient(135deg, #3d9966, #8fa898);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-content p {
  font-size: 15px;
  color: rgba(255, 255, 255, .5);
  line-height: 1.7;
  margin-bottom: 36px;
}

.brand-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}

.brand-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, .65);
  font-weight: 500;
}

.feat-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: rgba(255, 255, 255, .5);
}

.feat-icon svg {
  width: 18px;
  height: 18px;
}

.brand-stats {
  display: flex;
  gap: 0;
}

.brand-stat {
  padding-right: 28px;
  margin-right: 28px;
  border-right: 1px solid rgba(255, 255, 255, .1);
}

.brand-stat:last-child {
  border-right: none;
  margin-right: 0;
  padding-right: 0;
}

.brand-stat-val {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.5px;
  font-family: 'DM Mono', monospace;
}

.brand-stat-lbl {
  font-size: 11px;
  color: rgba(255, 255, 255, .35);
  margin-top: 2px;
  font-weight: 500;
  letter-spacing: .3px;
}

.brand-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 24px;
  align-items: center;
}

.brand-bottom span {
  font-size: 12px;
  color: rgba(255, 255, 255, .25);
}

.brand-bottom a {
  font-size: 12px;
  color: rgba(255, 255, 255, .35);
  text-decoration: none;
  transition: color .15s;
}

.brand-bottom a:hover {
  color: rgba(255, 255, 255, .6);
}

/* RIGHT PANEL (Form) */
.form-panel {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px;
  background: var(--white);
  position: relative;
  overflow-y: auto;
}

.form-panel::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle at top right, rgba(45, 122, 79, .04) 0%, transparent 70%);
  pointer-events: none;
}

.form-wrapper {
  width: 100%;
  max-width: 480px;
  position: relative;
  z-index: 2;
  padding: 20px 0;
}

.mobile-brand {
  display: none;
  align-items: center;
  margin-bottom: 32px;
}

.form-header {
  margin-bottom: 32px;
}

.form-header h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--gray800);
  letter-spacing: -.3px;
  margin-bottom: 8px;
}

.form-header p {
  font-size: 14px;
  color: var(--gray400);
  line-height: 1.6;
}

/* GOOGLE BUTTON */
.google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  background: var(--white);
  border: 1.5px solid var(--gray200);
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray800);
  cursor: pointer;
  transition: all .2s;
  margin-bottom: 20px;
}

.google-btn:hover {
  border-color: var(--gray300);
  background: var(--gray50);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}

.google-btn:active {
  transform: scale(.99);
}

.google-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* DIVIDER */
.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray200);
}

.divider span {
  font-size: 12px;
  color: var(--gray400);
  font-weight: 500;
  white-space: nowrap;
}

/* SECTION TITLE */
.section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray800);
  letter-spacing: -.1px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray100);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title svg {
  width: 16px;
  height: 16px;
  color: var(--gray400);
}

/* FORM ROW (2-col grid) */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* FORM GROUPS */
.input-group {
  margin-bottom: 14px;
}

.input-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray600);
  margin-bottom: 6px;
}

.input-wrap {
  position: relative;
}

.input-wrap .input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--gray300);
  pointer-events: none;
  transition: color .15s;
}

.input-wrap input,
.input-wrap textarea {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border: 1.5px solid var(--gray200);
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--gray800);
  outline: none;
  transition: all .2s;
  background: var(--white);
}

.input-wrap input.no-icon,
.input-wrap textarea.no-icon {
  padding-left: 14px;
}

.input-wrap input::placeholder,
.input-wrap textarea::placeholder {
  color: var(--gray300);
}

.input-wrap input:focus,
.input-wrap textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(12, 46, 27, .08);
}

.input-wrap input:focus~.input-icon,
.input-wrap textarea:focus~.input-icon {
  color: var(--navy);
}

.input-wrap textarea {
  resize: none;
  height: 80px;
  padding-top: 12px;
}

/* Password toggle */
.pw-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray300);
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color .15s;
}

.pw-toggle:hover {
  color: var(--gray600);
}

/* TERMS */
.terms-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0 24px;
  cursor: pointer;
}

.terms-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--navy);
  cursor: pointer;
  margin-top: 2px;
  flex-shrink: 0;
}

.terms-check span {
  font-size: 13px;
  color: var(--gray600);
  line-height: 1.5;
}

.terms-check a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 500;
}

.terms-check a:hover {
  color: var(--navy);
}

/* SUBMIT BUTTON */
.submit-btn {
  width: 100%;
  padding: 14px 24px;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s cubic-bezier(.4, 0, .2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.submit-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, .08) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform .4s;
}

.submit-btn:hover {
  background: var(--navy2);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(12, 46, 27, .25);
}

.submit-btn:hover::after {
  transform: translateX(100%);
}

.submit-btn:active {
  transform: translateY(0);
}

.submit-btn .arrow {
  transition: transform .2s;
}

.submit-btn:hover .arrow {
  transform: translateX(3px);
}

/* ERROR BOX */
.register-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--red);
  font-weight: 500;
  padding: 12px 16px;
  margin-bottom: 16px;
}

.register-error svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

/* FOOTER NOTE */
.form-footer {
  margin-top: 28px;
  text-align: center;
}

.form-footer p {
  font-size: 13px;
  color: var(--gray400);
}

.form-footer a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  transition: color .15s;
}

.form-footer a:hover {
  color: var(--blue);
}

/* ANIMATIONS */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.brand-top {
  animation: fadeInLeft .6s ease-out;
}

.brand-content {
  animation: fadeInLeft .6s ease-out .15s both;
}

.brand-stats {
  animation: fadeInLeft .6s ease-out .3s both;
}

.form-header {
  animation: fadeInUp .5s ease-out .1s both;
}

.google-btn {
  animation: fadeInUp .5s ease-out .2s both;
}

.register-form {
  animation: fadeInUp .5s ease-out .3s both;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .register-layout {
    grid-template-columns: 1fr;
  }

  .brand-panel {
    display: none;
  }

  .form-panel {
    min-height: 100vh;
    padding: 32px 24px;
  }

  .form-wrapper {
    max-width: 460px;
  }

  .mobile-brand {
    display: flex !important;
  }
  .mobile-brand .brand-logo-wordmark {
    height: 30px;
    max-width: 170px;
  }
}

@media (max-width: 768px) {
  .form-panel {
    padding: 28px 20px;
  }
  .form-wrapper {
    max-width: 100%;
  }
  .form-header h2 {
    font-size: 26px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .google-btn {
    padding: 13px 18px;
  }
}

@media (max-width: 520px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .form-panel {
    padding: 32px 16px;
  }
  .mobile-brand .brand-logo-wordmark {
    height: 27px;
    max-width: 150px;
  }

  .form-header {
    margin-bottom: 24px;
  }

  .form-header h2 {
    font-size: 24px;
    margin-bottom: 6px;
  }

  .form-header p {
    font-size: 14px;
  }

  .google-btn {
    padding: 12px 16px;
    font-size: 14px;
    margin-bottom: 24px;
  }

  .input-wrap input {
    padding: 13px 14px 13px 42px;
    font-size: 15px;
  }

  .input-wrap input.no-icon {
    padding-left: 14px;
  }

  .pw-toggle {
    padding: 8px;
    right: 8px;
  }

  .submit-btn {
    padding: 14px 20px;
    font-size: 15px;
    margin-top: 8px;
  }

  .section-title {
    font-size: 14px;
    margin-bottom: 20px;
    padding-bottom: 16px;
  }

  .form-footer {
    margin-top: 24px;
  }

  .terms-check {
    margin: 24px 0 28px;
  }
}

/* ═══ FIELD VALIDATION ═══ */
.input-error {
  border-color: var(--red) !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .1) !important;
}

.field-error {
  font-size: 12px;
  color: var(--red);
  font-weight: 500;
  margin-top: 5px;
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.field-error::before {
  content: '!';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ═══ PASSWORD STRENGTH ═══ */
.pw-strength {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.pw-strength-track {
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: var(--gray100);
  overflow: hidden;
}

.pw-strength-fill {
  height: 100%;
  width: 0;
  border-radius: 4px;
  transition: width .3s ease, background .3s ease;
}

.pw-strength-label {
  font-size: 11px;
  font-weight: 700;
  min-width: 40px;
  text-align: right;
  transition: color .3s ease;
}

/* ═══ VALIDATION SUMMARY ═══ */
.validation-summary {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--red);
  font-weight: 500;
}
