:root {
  --green: #315114;
  --green-dark: #17210f;
  --green-light: #e8ede2;
  --orange: #f2a51a;
  --background: #f6f7f3;
  --muted: #777b6c;
  --border: #e1e6dc;
  --white: #fffefa;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--background);
  color: var(--green-dark);
  min-height: 100vh;
}

.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
}

.auth-brand {
  background: var(--green-dark);
  color: white;
  padding: 55px 9%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.brand-logo,
.mobile-logo {
  font-size: 27px;
  font-weight: 800;
  text-decoration: none;
  color: inherit;
  letter-spacing: -1px;
}

.brand-logo span,
.mobile-logo span {
  color: var(--orange);
}

.auth-brand h1 {
  max-width: 440px;
  font-size: clamp(40px, 5vw, 65px);
  line-height: 1.08;
  margin: 18px 0;
  letter-spacing: -2px;
}

.auth-brand p:not(.eyebrow):not(.brand-footer) {
  color: #c4cdbd;
  line-height: 1.7;
  max-width: 390px;
}

.eyebrow {
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
}

.auth-brand .eyebrow {
  color: var(--orange);
}

.brand-footer {
  color: #aab69f;
  font-size: 13px;
}

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 45px 25px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
}

.auth-card h2 {
  font-size: 30px;
  margin: 12px 0 8px;
  letter-spacing: -1px;
}

.auth-subtitle {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 27px;
}

.google-button {
  display: flex;
  justify-content: center;
  min-height: 42px;
}

.separator {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  margin: 24px 0;
}

.separator::before,
.separator::after {
  content: "";
  height: 1px;
  background: var(--border);
  flex: 1;
}

form label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin: 17px 0 8px;
}

form input {
  width: 100%;
  height: 49px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--white);
  font-size: 14px;
  outline: none;
}

form input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-light);
}

.primary-button {
  width: 100%;
  height: 50px;
  margin-top: 18px;
  background: var(--green);
  color: white;
  border: 0;
  border-radius: 9px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.primary-button:hover {
  background: #243e0d;
}

.primary-button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.auth-message {
  min-height: 18px;
  margin-top: 12px;
  font-size: 13px;
  color: #b42318;
}

.auth-message.success {
  color: var(--green);
}

.auth-switch {
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
  color: var(--muted);
}

.auth-switch a {
  color: var(--green);
  font-weight: 700;
  text-decoration: none;
}

.mobile-logo {
  display: none;
  color: var(--green-dark);
  margin-bottom: 35px;
}

@media (max-width: 800px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .auth-brand {
    display: none;
  }

  .auth-panel {
    min-height: 100vh;
    padding: 35px 22px;
  }

  .mobile-logo {
    display: inline-block;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* INTENTCART — LOGIN PAGE REDESIGN */

.ic-login-page {
  --login-bg: #f6f7f3;
  --login-paper: #fffefa;
  --login-ink: #17210f;
  --login-green: #35551b;
  --login-green-dark: #243b12;
  --login-soft: #e8ede2;
  --login-orange: #f2a51a;
  --login-muted: #777b6c;
  --login-line: #e1e6dc;
  min-height: 100vh;
  background: var(--login-bg);
  color: var(--login-ink);
}

.ic-login-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(430px, 0.92fr) minmax(0, 1.08fr);
}

.ic-login-form-side {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 45px clamp(24px, 6vw, 90px);
  background: var(--login-paper);
}

.ic-login-form-wrap {
  width: 100%;
  max-width: 420px;
}

.ic-login-logo,
.ic-login-visual-logo {
  display: inline-block;
  color: var(--login-ink);
  font-size: 27px;
  font-weight: 850;
  letter-spacing: -1.5px;
  text-decoration: none;
}

.ic-login-logo span,
.ic-login-visual-logo span {
  color: var(--login-orange);
}

.ic-login-heading {
  margin-top: 57px;
}

.ic-login-heading .eyebrow {
  color: var(--login-green);
}

.ic-login-heading h1 {
  margin: 14px 0 12px;
  color: var(--login-ink);
  font-size: clamp(39px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.065em;
  font-weight: 800;
}

.ic-login-heading h1 em {
  color: var(--login-green);
  font-family: Georgia, serif;
  font-weight: 500;
}

.ic-login-heading .auth-subtitle {
  margin-bottom: 23px;
  color: var(--login-muted);
  font-size: 13px;
  line-height: 1.7;
}

.ic-login-form-wrap .google-button {
  min-height: 42px;
}

.ic-login-form-wrap .separator {
  margin: 22px 0;
  color: #92988a;
}

.ic-login-form-wrap form label {
  color: var(--login-ink);
  font-size: 12px;
}

.ic-login-form-wrap form input {
  height: 49px;
  border-color: var(--login-line);
  border-radius: 10px;
  background: #fbfcf9;
}

.ic-login-form-wrap form input:focus {
  border-color: #7e9b69;
  box-shadow: 0 0 0 3px #35551b16;
}

.ic-login-form-wrap .primary-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 51px;
  margin-top: 10px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--login-green);
  font-size: 13px;
}

.ic-login-form-wrap .primary-button:hover {
  background: var(--login-green-dark);
}

.ic-login-form-wrap .primary-button span {
  font-size: 19px;
}

.ic-login-alternatives {
  display: grid;
  gap: 10px;
  margin-top: 19px;
}

.ic-login-alt-button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 65px;
  padding: 11px 13px;
  border: 1px solid var(--login-line);
  border-radius: 12px;
  background: #fffefa;
  color: var(--login-ink);
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.ic-login-alt-button:hover {
  border-color: #aab99d;
  background: #f7f9f4;
  color: var(--login-ink);
}

.ic-login-alt-icon {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--login-soft);
  color: var(--login-green);
  font-size: 19px;
}

.ic-login-alt-button > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ic-login-alt-button strong {
  font-size: 11px;
  font-weight: 800;
}

.ic-login-alt-button small {
  color: var(--login-muted);
  font-size: 9px;
  line-height: 1.4;
}

.ic-login-alt-arrow {
  margin-left: auto;
  color: var(--login-green);
  font-size: 17px;
}

.ic-login-register {
  margin: 23px 0 0;
  color: var(--login-muted);
  font-size: 12px;
  text-align: center;
}

.ic-login-register a {
  color: var(--login-green);
  font-weight: 800;
  text-decoration: none;
}

.ic-login-register a:hover {
  text-decoration: underline;
}

.ic-login-legal {
  margin: 23px 0 0;
  color: #a0a596;
  font-size: 9px;
  text-align: center;
}

.ic-login-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  overflow: hidden;
  padding: 45px clamp(30px, 5vw, 75px);
  background-color: #e8ede2;
  background-image:
    linear-gradient(
      180deg,
      rgba(23, 33, 15, 0.12) 0%,
      rgba(23, 33, 15, 0.03) 35%,
      rgba(23, 33, 15, 0.73) 100%
    ),
    url("/images/intentcart-login-shopping.png");
  background-position: center;
  background-size: cover;
  color: white;
}

.ic-login-visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(23, 33, 15, 0.2), transparent 50%);
  pointer-events: none;
}

.ic-login-visual-logo,
.ic-login-visual-copy,
.ic-login-visual-bottom {
  position: relative;
  z-index: 1;
}

.ic-login-visual-logo {
  color: white;
}

.ic-login-visual-copy {
  max-width: 470px;
  margin-top: auto;
  margin-bottom: auto;
  padding-top: 50px;
  padding-bottom: 50px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}

.ic-login-visual-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.ic-login-visual-tag span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--login-orange);
}

.ic-login-visual-copy h2 {
  margin: 19px 0 14px;
  font-size: clamp(48px, 6vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.07em;
  font-weight: 850;
}

.ic-login-visual-copy h2 em {
  color: #ffd17a;
  font-family: Georgia, serif;
  font-weight: 500;
}

.ic-login-visual-copy p {
  max-width: 360px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  line-height: 1.8;
}

.ic-login-visual-bottom {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

@media (max-width: 900px) {
  .ic-login-layout {
    grid-template-columns: minmax(360px, 1fr) minmax(0, 0.85fr);
  }

  .ic-login-form-side {
    padding: 35px 25px;
  }

  .ic-login-visual {
    padding: 35px 25px;
  }

  .ic-login-visual-copy h2 {
    font-size: 52px;
  }
}

@media (max-width: 700px) {
  .ic-login-layout {
    grid-template-columns: 1fr;
  }

  .ic-login-form-side {
    min-height: 100vh;
    padding: 30px 23px;
  }

  .ic-login-heading {
    margin-top: 38px;
  }

  .ic-login-visual {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ic-login-alt-button {
    transition: none;
  }
}
