: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);
}

* {
  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;
}

.login-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* LEFT - 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;
}
.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;
  margin-bottom: 36px;
}

.brand-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, .7);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 0;
}

.brand-features li .feat-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-features li .feat-icon svg {
  width: 14px;
  height: 14px;
  color: rgba(255, 255, 255, .6);
}

.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 - FORM */
.form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  background: var(--white);
  position: relative;
}

.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: 420px;
  position: relative;
  z-index: 2;
}

.form-header {
  margin-bottom: 36px;
}

.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 BTN */
.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 svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* DIVIDER */
.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.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;
}

/* INPUTS */
.input-group {
  margin-bottom: 16px;
}

.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 {
  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::placeholder {
  color: var(--gray300);
}

.input-wrap input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(12, 46, 27, .08);
}

.input-wrap input:focus~.input-icon {
  color: var(--navy);
}

/* PW 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);
}

/* EXTRAS */
.form-extras {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.remember-me input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--navy);
  cursor: pointer;
}

.remember-me span {
  font-size: 13px;
  color: var(--gray600);
}

.forgot-link {
  font-size: 13px;
  color: var(--blue);
  text-decoration: none;
  font-weight: 500;
  transition: color .15s;
}

.forgot-link:hover {
  color: var(--navy);
}

/* SUBMIT */
.login-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;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.login-submit-btn:hover {
  background: var(--navy2);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(12, 46, 27, .25);
}

.login-submit-btn:active {
  transform: translateY(0);
}

/* 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);
}

/* LOGIN ERROR */
.login-error {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #dc2626;
  font-weight: 500;
}

.login-error svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

/* MOBILE BRAND */
.mobile-brand {
  display: none;
  align-items: center;
  margin-bottom: 32px;
}

/* 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;
}

/* RESPONSIVE */
@media(max-width:1024px) {
  .login-layout {
    grid-template-columns: 1fr;
  }

  .brand-panel {
    display: none;
  }

  .form-panel {
    min-height: 100vh;
    padding: 32px 24px;
  }

  .form-wrapper {
    max-width: 400px;
  }

  .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;
  }
  .google-btn {
    padding: 13px 18px;
  }
}

@media(max-width:480px) {
  .form-panel {
    padding: 32px 16px;
  }
  .mobile-brand .brand-logo-wordmark {
    height: 27px;
    max-width: 150px;
  }

  .form-header {
    margin-bottom: 28px;
  }

  .form-header h2 {
    font-size: 24px;
    margin-bottom: 6px;
  }

  .form-header p {
    font-size: 14px;
  }

  .form-extras {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 28px;
  }

  .google-btn {
    padding: 13px 16px;
    font-size: 14px;
    margin-bottom: 24px;
  }

  .input-wrap input {
    padding: 13px 14px 13px 42px;
    font-size: 15px;
  }

  .pw-toggle {
    padding: 8px;
    right: 8px;
  }

  .login-submit-btn {
    padding: 14px 20px;
    font-size: 15px;
  }

  .form-footer {
    margin-top: 24px;
  }
}
