:root {
  --green: #0fa373;
  --green-strong: #07845e;
  --ink: #101820;
  --text: #435650;
  --muted: #74827d;
  --line: #dfe9e4;
  --surface: #ffffff;
  --soft: #eefaf4;
  --shadow: 0 18px 54px rgba(22, 93, 68, 0.14);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #f3fbf7;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 18%, rgba(15, 163, 115, 0.12), transparent 28%),
    linear-gradient(180deg, #f5fcf8 0%, #ecf8f2 100%);
  font-family: inherit;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

svg {
  display: block;
}

.login-screen {
  display: grid;
  min-height: 100dvh;
  align-content: start;
  padding: 8px;
}

.login-shell {
  width: 100%;
}

.login-card {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.82fr);
  width: min(1180px, calc(100vw - 96px));
  min-height: min(760px, calc(100dvh - 56px));
  margin: clamp(20px, 4vw, 58px) auto;
  overflow: hidden;
  border: 1px solid rgba(22, 101, 76, 0.12);
  border-radius: 34px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.93) 48%, rgba(237, 250, 244, 0.82) 100%),
    url("./assets/garimpanda-login-bg.webp") center bottom / cover no-repeat;
  box-shadow: var(--shadow);
}

.login-showcase,
.login-panel {
  position: relative;
  display: grid;
  min-width: 0;
}

.login-showcase {
  align-content: start;
  gap: clamp(18px, 2.8vw, 32px);
  overflow: hidden;
  border-right: 1px solid rgba(24, 57, 46, 0.1);
  padding: clamp(34px, 4vw, 52px);
}

.login-showcase::before,
.login-showcase::after {
  position: absolute;
  border-radius: 999px;
  content: "";
  pointer-events: none;
}

.login-showcase::before {
  right: -120px;
  bottom: -110px;
  width: 330px;
  height: 330px;
  background: rgba(15, 163, 115, 0.1);
}

.login-showcase::after {
  right: clamp(110px, 17vw, 210px);
  top: clamp(80px, 11vw, 150px);
  width: 12px;
  height: 12px;
  background: rgba(15, 163, 115, 0.18);
  box-shadow: 0 0 0 12px rgba(15, 163, 115, 0.06);
  transform: rotate(45deg);
}

.login-logo {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  text-decoration: none;
}

.login-logo-mark {
  width: 58px;
  height: 50px;
  flex: 0 0 auto;
  border-radius: 18px;
  background: #e5f6ee url("./assets/garimpanda-brand-mark.webp") center / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(15, 163, 115, 0.14);
}

.login-logo strong {
  color: #1d282f;
  font-size: clamp(1.55rem, 2.2vw, 2.05rem);
  line-height: 1;
}

.login-logo strong span,
.login-showcase-copy h2 span,
.login-header h1 span {
  color: var(--green);
}

.login-showcase-copy {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 16px;
  max-width: 640px;
  margin-top: clamp(16px, 2.5vh, 28px);
}

.login-showcase-copy > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 40px;
  border: 1px solid rgba(0, 150, 96, 0.12);
  border-radius: 999px;
  background: rgba(214, 244, 229, 0.92);
  color: #069467;
  font-size: 0.86rem;
  font-weight: 900;
  padding: 0 16px;
}

.login-showcase-copy > span::before {
  width: 17px;
  height: 17px;
  border: 2px solid currentColor;
  border-radius: 6px;
  content: "";
}

.login-showcase-copy h2 {
  max-width: 680px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.85rem, 4.1vw, 4.75rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.96;
  text-wrap: balance;
}

.login-showcase-copy p {
  max-width: 540px;
  margin: 0;
  color: var(--text);
  font-size: clamp(1rem, 1.1vw, 1.18rem);
  line-height: 1.45;
}

.login-showcase-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: auto;
}

.login-showcase-grid article {
  min-height: 100px;
  border: 1px solid rgba(24, 57, 46, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  padding: 16px;
}

.login-showcase-grid strong,
.login-showcase-grid span {
  display: block;
}

.login-showcase-grid strong {
  color: var(--green);
  font-size: 1.45rem;
  font-weight: 950;
}

.login-showcase-grid span {
  margin-top: 4px;
  color: #5c6a66;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.25;
}

.login-security {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.login-security > span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 16px;
  background: #e3f7ee;
  color: var(--green);
}

.login-security svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.login-security strong {
  display: block;
  color: #1f2d31;
  font-weight: 900;
}

.login-security p {
  margin: 2px 0 0;
  color: #6f7f78;
  font-size: 0.82rem;
}

.login-panda {
  position: absolute;
  z-index: 2;
  right: clamp(4px, 2.4vw, 24px);
  bottom: clamp(-18px, -1vw, -6px);
  width: clamp(280px, 29vw, 430px);
  height: auto;
  pointer-events: none;
}

.login-panel {
  align-content: center;
  padding: clamp(36px, 4.4vw, 54px);
}

.login-form-card {
  position: relative;
  display: grid;
  gap: 18px;
  max-width: 430px;
}

.login-logo-mobile {
  display: none;
}

.login-header {
  display: grid;
  gap: 10px;
}

.login-header h1 {
  max-width: 390px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.35rem, 3vw, 3.1rem);
  line-height: 1.04;
}

.login-header p {
  max-width: 390px;
  margin: 0;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.5;
}

.login-form {
  display: grid;
  gap: 14px;
  margin-top: 4px;
}

.login-field {
  display: grid;
  gap: 8px;
}

.login-field > span {
  color: #1d282f;
  font-weight: 900;
}

.login-input-shell {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 0 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.login-input-shell:focus-within {
  border-color: rgba(15, 163, 115, 0.42);
  box-shadow: 0 0 0 4px rgba(15, 163, 115, 0.11);
}

.login-input-shell svg,
.create-account-button svg,
.login-submit svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.login-input-shell svg {
  width: 20px;
  height: 20px;
  color: #99a7ad;
}

.login-input-shell input {
  min-width: 0;
  min-height: 52px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 1rem;
}

.login-input-shell input::placeholder {
  color: #b9c4ca;
}

.password-toggle {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 12px;
  color: #80909a;
  background: transparent;
}

.password-toggle svg {
  width: 22px;
  height: 22px;
}

.forgot-link,
.guest-link {
  color: var(--green-strong);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.forgot-link {
  justify-self: end;
  margin-top: -2px;
  font-size: 0.9rem;
}

.primary-button,
.secondary-button,
.login-submit,
.google-login-button,
.create-account-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border-radius: 16px;
  font-weight: 950;
  text-align: center;
  text-decoration: none;
  touch-action: manipulation;
}

.primary-button,
.login-submit {
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, #17bd83 0%, #0aa36f 100%);
}

.secondary-button {
  border: 1px solid rgba(0, 150, 96, 0.2);
  color: var(--green-strong);
  background: #eefaf4;
}

.login-submit {
  gap: 10px;
  width: 100%;
  font-size: 1rem;
}

.login-submit svg {
  width: 18px;
  height: 18px;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #9ba7ad;
  font-weight: 900;
}

.login-divider::before,
.login-divider::after {
  flex: 1;
  height: 1px;
  background: #e2e9e6;
  content: "";
}

.google-login-button,
.create-account-button {
  gap: 12px;
  width: 100%;
  border: 1px solid var(--line);
  color: #14202a;
  background: #fff;
}

.google-login-button span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #e3e9ed;
  border-radius: 999px;
  color: #4285f4;
  font-weight: 950;
}

.create-account-button svg {
  width: 24px;
  height: 24px;
}

.guest-link {
  justify-self: center;
}

.form-status {
  min-height: 20px;
  margin: 0;
  color: #b45309;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.35;
}

.form-status.ready {
  color: var(--green-strong);
}

.legal-footer {
  width: min(100% - 16px, 1180px);
  margin: 12px auto 0;
  color: #52635d;
}

.legal-footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(15, 83, 61, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  padding: 14px 16px;
}

.legal-footer strong {
  display: block;
  color: var(--ink);
}

.legal-footer p {
  margin: 3px 0 0;
  font-size: 0.82rem;
  line-height: 1.35;
}

.legal-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.legal-footer a,
.legal-footer button,
.privacy-banner-actions a {
  border: 0;
  color: var(--green-strong);
  background: transparent;
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
}

.privacy-banner {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  width: min(620px, calc(100vw - 32px));
  border: 1px solid rgba(15, 83, 61, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 18px 46px rgba(17, 24, 39, 0.18);
  padding: 14px;
}

.privacy-banner strong {
  display: block;
  color: var(--ink);
}

.privacy-banner p {
  margin: 5px 0 0;
  color: #52635d;
  font-size: 0.84rem;
  line-height: 1.35;
}

.privacy-banner-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: min(310px, 100%);
}

.privacy-banner-actions a {
  grid-column: 1 / -1;
  text-align: center;
}

.privacy-banner-actions .primary-button,
.privacy-banner-actions .secondary-button {
  min-height: 42px;
  border-radius: 13px;
  font-size: 0.8rem;
  padding: 0 10px;
}

@media (hover: hover) and (pointer: fine) {
  .login-submit,
  .google-login-button,
  .create-account-button,
  .password-toggle,
  .forgot-link,
  .guest-link {
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
  }

  .google-login-button:hover,
  .create-account-button:hover {
    border-color: rgba(15, 163, 115, 0.28);
    background: #f6fbf8;
  }
}

.login-submit:active,
.google-login-button:active,
.create-account-button:active,
.password-toggle:active {
  transform: scale(0.97);
}

button:disabled,
input:disabled {
  cursor: wait;
  opacity: 0.7;
}

@media (max-width: 980px) {
  .login-card {
    grid-template-columns: 1fr;
    width: min(100%, 620px);
  }

  .login-showcase .login-logo {
    display: none;
  }

  .login-showcase {
    min-height: 286px;
    border-right: 0;
  }

  .login-showcase-grid,
  .login-security {
    display: none;
  }

  .login-panel {
    padding: 36px 42px 44px;
  }

  .login-form-card {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .login-screen {
    padding: 8px;
  }

  .login-card {
    width: 100%;
    min-height: 0;
    margin: 0;
    border-radius: 24px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(243, 253, 248, 0.94) 48%, #fff 48.2%, #fff 100%),
      url("./assets/garimpanda-login-bg.webp") center top / cover no-repeat;
  }

  .login-showcase {
    min-height: 306px;
    gap: 12px;
    padding: 18px 18px 22px;
  }

  .login-logo {
    gap: 9px;
  }

  .login-logo-mark {
    width: 46px;
    height: 42px;
    border-radius: 14px;
  }

  .login-logo strong {
    font-size: clamp(1.42rem, 6.2vw, 1.7rem);
  }

  .login-showcase-copy {
    gap: 10px;
    max-width: 100%;
    margin-top: 0;
    padding-right: 96px;
  }

  .login-showcase-copy > span {
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.76rem;
  }

  .login-showcase-copy h2 {
    max-width: 100%;
    font-size: clamp(1.82rem, 8.4vw, 2.2rem);
    line-height: 1.04;
  }

  .login-showcase-copy p {
    max-width: min(100%, 220px);
    font-size: 0.88rem;
    line-height: 1.34;
  }

  .login-panda {
    right: 8px;
    bottom: 14px;
    width: 112px;
  }

  .login-panel {
    margin-top: -8px;
    background: transparent;
    padding: 0 12px 16px;
  }

  .login-form-card {
    gap: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.985);
    box-shadow: 0 14px 40px rgba(25, 72, 54, 0.1);
    padding: 20px 16px 18px;
  }

  .login-panel .login-logo-mobile,
  .login-panel .login-header {
    display: none;
  }

  .login-form {
    gap: 12px;
    margin-top: 0;
  }

  .login-input-shell {
    min-height: 52px;
    border-radius: 13px;
    padding: 0 12px;
  }

  .login-input-shell input {
    min-height: 50px;
  }

  .password-toggle {
    width: 42px;
    height: 42px;
    margin-right: -8px;
  }

  .login-submit,
  .google-login-button,
  .create-account-button {
    min-height: 52px;
    border-radius: 14px;
  }

  .legal-footer {
    margin-top: 12px;
    margin-bottom: 8px;
  }

  .legal-footer-inner {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
  }

  .legal-footer-brand p {
    display: none;
  }

  .legal-footer nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: initial;
    width: 100%;
  }

  .legal-footer a,
  .legal-footer button {
    min-height: 40px;
    border: 1px solid rgba(15, 83, 61, 0.1);
    border-radius: 12px;
    background: #f7fbf9;
  }

  .legal-footer button[data-privacy-preferences] {
    grid-column: 1 / -1;
  }

  .privacy-banner {
    position: static;
    grid-template-columns: 1fr;
    width: min(100% - 16px, 374px);
    margin: 12px auto 0;
    gap: 9px;
    border-radius: 18px;
    padding: 12px;
  }

  .privacy-banner p {
    display: none;
  }

  .privacy-banner-actions {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .login-showcase {
    min-height: 286px;
    padding: 18px 16px 22px;
  }

  .login-showcase-copy {
    padding-right: 82px;
  }

  .login-showcase-copy h2 {
    font-size: clamp(1.66rem, 8.2vw, 2rem);
  }

  .login-showcase-copy p {
    max-width: min(100%, 214px);
    font-size: 0.84rem;
    line-height: 1.32;
  }

  .login-panda {
    right: 6px;
    bottom: 12px;
    width: 100px;
  }

  .login-panel {
    padding-inline: 10px;
  }

  .login-form-card {
    padding: 18px 14px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Copa theme: seasonal login polish using optimized local WebP only. */
:root {
  --copa-green: #07885f;
  --copa-yellow: #ffd84d;
  --copa-blue: #1d5fbf;
}

.login-card {
  border-color: rgba(7, 136, 95, 0.16);
  background:
    linear-gradient(136deg, rgba(255, 216, 77, 0.18) 0%, rgba(255, 216, 77, 0) 28%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.94) 48%, rgba(229, 248, 237, 0.88) 100%),
    url("./assets/garimpanda-login-bg.webp") center bottom / cover no-repeat;
}

.login-showcase {
  border-right-color: rgba(7, 136, 95, 0.12);
}

.login-showcase-copy > span {
  border-color: rgba(7, 136, 95, 0.2);
  background:
    linear-gradient(90deg, rgba(255, 216, 77, 0.36), rgba(222, 247, 232, 0.94));
  color: #056a4b;
}

.login-showcase-copy > span::before {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--copa-green) 0 42%, var(--copa-yellow) 42% 66%, var(--copa-blue) 66% 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.72);
}

.login-showcase-copy h2 span,
.login-header h1 span,
.login-logo strong span {
  color: var(--copa-green);
}

.login-showcase-grid article {
  border-top: 3px solid rgba(255, 216, 77, 0.64);
}

.login-showcase-grid strong {
  color: var(--copa-green);
}

.login-security > span {
  background: #fff5c9;
  color: #087255;
}

.login-panda {
  width: clamp(260px, 27vw, 390px);
  max-width: 44%;
  filter: drop-shadow(0 24px 32px rgba(12, 74, 54, 0.16));
}

.login-submit {
  background:
    linear-gradient(135deg, #0bb17d, #087255);
  box-shadow: 0 16px 30px rgba(7, 136, 95, 0.22);
}

@media (min-width: 901px) {
  .login-security div {
    max-width: 320px;
  }

  .login-panda {
    right: clamp(18px, 3vw, 46px);
    bottom: -28px;
    width: clamp(240px, 22vw, 330px);
    max-width: 38%;
  }
}

@media (max-width: 760px) {
  .login-showcase-copy {
    padding-right: clamp(92px, 31vw, 154px);
  }

  .login-panda {
    right: 12px;
    bottom: 16px;
    width: clamp(118px, 34vw, 168px);
    max-width: 42vw;
  }
}

@media (max-width: 380px) {
  .login-showcase-copy {
    padding-right: 92px;
  }

  .login-panda {
    right: 8px;
    bottom: 16px;
    width: 104px;
  }
}

/* Footer alignment pass for the standalone login screen. */
.legal-footer,
.legal-footer * {
  box-sizing: border-box;
}

.legal-footer-inner {
  align-items: center;
}

.legal-footer nav {
  align-items: center;
}

.legal-footer a,
.legal-footer button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 999px;
  line-height: 1.16;
  padding: 8px 10px;
  text-align: center;
  white-space: nowrap;
  transition:
    background-color 160ms ease,
    transform 140ms ease;
}

@media (min-width: 761px) {
  .legal-footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .legal-footer nav {
    display: flex;
    justify-content: flex-end;
    max-width: 100%;
  }
}

@media (max-width: 760px) {
  .legal-footer {
    width: min(calc(100% - 20px), 430px) !important;
    margin-inline: auto !important;
  }

  .legal-footer-inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    justify-items: center;
    gap: 12px !important;
    padding: 14px !important;
    text-align: center;
  }

  .legal-footer-brand,
  .legal-footer-brand p {
    width: 100%;
    margin-inline: auto;
    text-align: center;
  }

  .legal-footer nav {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: stretch;
    justify-content: initial !important;
    gap: 8px !important;
    width: 100%;
  }

  .legal-footer a,
  .legal-footer button {
    width: 100%;
    min-width: 0;
    min-height: 44px !important;
    padding: 0 10px !important;
    border: 1px solid rgba(15, 83, 61, 0.1);
    border-radius: 13px;
    background: #f7fbf9;
    color: var(--green-strong);
    font-size: clamp(0.74rem, 3.05vw, 0.84rem) !important;
    font-weight: 900;
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .legal-footer button[data-privacy-preferences] {
    grid-column: auto !important;
  }
}

@media (max-width: 340px) {
  .legal-footer nav {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Modern login alignment pass. Kept at the end so it can be reverted as one block. */
:root {
  --login-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --login-ease-move: cubic-bezier(0.77, 0, 0.175, 1);
  --login-border: rgba(9, 88, 63, 0.13);
  --login-surface: rgba(255, 255, 255, 0.9);
  --login-surface-muted: rgba(241, 251, 246, 0.84);
}

html {
  background: #edf8f2;
}

body {
  background:
    radial-gradient(circle at 9% 14%, rgba(255, 216, 77, 0.18), transparent 24%),
    radial-gradient(circle at 88% 18%, rgba(9, 156, 108, 0.15), transparent 28%),
    linear-gradient(145deg, #f8fcfa 0%, #edf8f2 52%, #e7f4ed 100%);
}

.login-screen {
  align-content: center;
  padding: 24px;
}

.login-card {
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  width: min(1200px, calc(100vw - 48px));
  min-height: clamp(680px, calc(100dvh - 56px), 760px);
  margin: 0 auto;
  border-color: var(--login-border);
  border-radius: 32px;
  background:
    linear-gradient(136deg, rgba(255, 216, 77, 0.15) 0%, transparent 28%),
    linear-gradient(105deg, rgba(255, 255, 255, 0.98) 0%, rgba(251, 254, 252, 0.96) 53%, rgba(234, 249, 241, 0.93) 100%),
    url("./assets/garimpanda-login-bg.webp") center bottom / cover no-repeat;
  box-shadow:
    0 30px 80px rgba(20, 84, 62, 0.16),
    0 2px 8px rgba(20, 84, 62, 0.05);
}

.login-showcase {
  gap: 24px;
  border-right-color: var(--login-border);
  padding: clamp(38px, 4vw, 56px);
}

.login-showcase::before {
  right: -96px;
  bottom: -126px;
  width: 360px;
  height: 360px;
  background: rgba(9, 156, 108, 0.08);
}

.login-showcase::after {
  top: 148px;
  right: 18%;
  width: 10px;
  height: 10px;
  background: rgba(9, 156, 108, 0.16);
  box-shadow: 0 0 0 10px rgba(9, 156, 108, 0.055);
}

.login-logo {
  gap: 11px;
}

.login-logo-mark {
  width: 50px;
  height: 48px;
  border-radius: 15px;
  box-shadow:
    inset 0 0 0 1px rgba(15, 163, 115, 0.13),
    0 7px 20px rgba(22, 93, 68, 0.08);
}

.login-logo strong {
  font-size: clamp(1.55rem, 2vw, 1.9rem);
  letter-spacing: -0.035em;
}

.login-showcase-copy {
  gap: 14px;
  max-width: 610px;
  margin-top: clamp(14px, 2.2vh, 24px);
}

.login-showcase-copy > span {
  min-height: 36px;
  border-color: rgba(7, 136, 95, 0.16);
  background: rgba(239, 249, 244, 0.92);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.62);
  font-size: 0.8rem;
  letter-spacing: 0.01em;
  padding-inline: 13px;
}

.login-showcase-copy h2 {
  max-width: 630px;
  font-size: clamp(3rem, 4.15vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.login-showcase-copy p {
  max-width: 510px;
  color: #52625d;
  font-size: clamp(0.98rem, 1.05vw, 1.08rem);
  line-height: 1.55;
}

.login-showcase-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  margin-top: auto;
  border: 1px solid rgba(24, 90, 67, 0.11);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
}

.login-showcase-grid article {
  display: grid;
  align-content: center;
  min-height: 82px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 12px 16px;
}

.login-showcase-grid article + article {
  border-left: 1px solid rgba(24, 90, 67, 0.1);
}

.login-showcase-grid strong {
  color: #087758;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.025em;
}

.login-showcase-grid span {
  margin-top: 3px;
  color: #687772;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
}

.login-security {
  max-width: 330px;
  gap: 11px;
}

.login-security > span {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(191, 153, 25, 0.12);
  border-radius: 14px;
  background: rgba(255, 247, 210, 0.82);
}

.login-security svg {
  width: 24px;
  height: 24px;
}

.login-security strong {
  font-size: 0.92rem;
}

.login-security p {
  max-width: 245px;
  margin-top: 3px;
  font-size: 0.78rem;
  line-height: 1.35;
}

.login-panda {
  right: clamp(20px, 3vw, 44px);
  bottom: -18px;
  width: clamp(246px, 22vw, 326px);
  max-width: 38%;
  filter: drop-shadow(0 24px 30px rgba(12, 74, 54, 0.15));
}

.login-panel {
  justify-items: center;
  align-content: center;
  border-left: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(238, 249, 243, 0.56);
  padding: 30px;
}

.login-form-card {
  width: min(100%, 440px);
  max-width: none;
  gap: 16px;
  border: 1px solid rgba(16, 99, 72, 0.1);
  border-radius: 26px;
  background: var(--login-surface);
  box-shadow:
    0 22px 52px rgba(26, 91, 68, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  padding: clamp(26px, 3vw, 34px);
  backdrop-filter: blur(14px);
}

.login-header {
  gap: 8px;
}

.login-header h1 {
  max-width: none;
  font-size: clamp(2rem, 2.6vw, 2.45rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.login-header p {
  max-width: 360px;
  color: #61706b;
  font-size: 0.93rem;
  line-height: 1.5;
}

.login-form {
  gap: 12px;
  margin-top: 3px;
}

.login-field {
  gap: 7px;
}

.login-field > span {
  color: #26342f;
  font-size: 0.88rem;
  font-weight: 800;
}

.login-input-shell {
  min-height: 54px;
  border-color: rgba(45, 89, 73, 0.17);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 2px rgba(26, 70, 54, 0.025);
  padding-inline: 14px 9px;
  transition:
    border-color 180ms var(--login-ease-out),
    box-shadow 180ms var(--login-ease-out),
    background-color 180ms ease;
}

.login-input-shell:focus-within {
  border-color: rgba(8, 132, 94, 0.58);
  background: #fff;
  box-shadow:
    0 0 0 4px rgba(15, 163, 115, 0.1),
    0 8px 24px rgba(15, 108, 77, 0.08);
}

.login-input-shell input {
  min-height: 52px;
  font-size: 1rem;
}

.login-input-shell input::placeholder {
  color: #9da9a5;
}

.password-toggle {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  transition:
    color 160ms ease,
    background-color 160ms ease,
    transform 140ms var(--login-ease-out);
}

.forgot-link,
.guest-link {
  color: #087758;
  text-decoration: none;
}

.forgot-link {
  margin-top: -1px;
  font-size: 0.82rem;
  font-weight: 800;
}

.login-submit,
.google-login-button,
.create-account-button {
  min-height: 52px;
  border-radius: 14px;
  font-weight: 850;
  transition:
    transform 140ms var(--login-ease-out),
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms var(--login-ease-out);
}

.login-submit {
  margin-top: 2px;
  background: linear-gradient(135deg, #10af7b 0%, #087758 100%);
  box-shadow: 0 12px 26px rgba(7, 136, 95, 0.22);
}

.login-divider {
  gap: 12px;
  color: #8b9893;
  font-size: 0.75rem;
  font-weight: 800;
}

.google-login-button,
.create-account-button {
  border-color: rgba(45, 89, 73, 0.15);
  background: rgba(255, 255, 255, 0.93);
}

.google-login-button span {
  width: 30px;
  height: 30px;
  font-size: 0.9rem;
}

.guest-link {
  min-height: 24px;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 24px;
}

.form-status {
  min-height: 0;
}

.form-status:empty {
  display: none;
}

.privacy-banner {
  position: static;
  right: auto;
  bottom: auto;
  width: min(1200px, calc(100% - 48px));
  margin: 12px auto 20px;
  border-color: rgba(16, 99, 72, 0.1);
  border-radius: 20px;
  box-shadow: 0 14px 38px rgba(17, 70, 52, 0.1);
}

.login-logo:focus-visible,
.forgot-link:focus-visible,
.guest-link:focus-visible,
.login-submit:focus-visible,
.google-login-button:focus-visible,
.create-account-button:focus-visible,
.password-toggle:focus-visible {
  outline: 3px solid rgba(19, 104, 207, 0.42);
  outline-offset: 3px;
}

.login-submit:active,
.google-login-button:active,
.create-account-button:active,
.password-toggle:active {
  transform: scale(0.98);
}

@media (hover: hover) and (pointer: fine) {
  .login-logo:hover {
    opacity: 0.82;
  }

  .password-toggle:hover {
    color: #087758;
    background: #eef8f3;
  }

  .forgot-link:hover,
  .guest-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .login-submit:hover {
    box-shadow: 0 16px 32px rgba(7, 136, 95, 0.28);
    transform: translateY(-1px);
  }

  .google-login-button:hover,
  .create-account-button:hover {
    border-color: rgba(8, 132, 94, 0.28);
    background: #f8fcfa;
    box-shadow: 0 8px 20px rgba(25, 88, 65, 0.06);
  }
}

@media (max-width: 1080px) and (min-width: 981px) {
  .login-card {
    grid-template-columns: minmax(0, 1fr) minmax(400px, 0.92fr);
  }

  .login-showcase {
    padding: 38px;
  }

  .login-showcase-copy h2 {
    font-size: 3.1rem;
  }

  .login-form-card {
    padding: 27px;
  }
}

@media (max-width: 980px) {
  .login-screen {
    align-content: start;
    padding: 20px;
  }

  .login-card {
    grid-template-columns: minmax(0, 1fr);
    width: min(700px, calc(100vw - 40px));
    min-height: 0;
    margin: 0 auto;
    overflow: visible;
    border-radius: 28px;
  }

  .login-showcase {
    min-height: 318px;
    border-right: 0;
    border-bottom: 1px solid var(--login-border);
    border-radius: 28px 28px 0 0;
    padding: 28px 34px 46px;
  }

  .login-showcase .login-logo {
    display: inline-flex;
  }

  .login-showcase-copy {
    gap: 10px;
    max-width: 520px;
    margin-top: 2px;
    padding-right: 180px;
  }

  .login-showcase-copy > span {
    min-height: 32px;
    font-size: 0.74rem;
  }

  .login-showcase-copy h2 {
    font-size: clamp(2.35rem, 6.2vw, 3rem);
  }

  .login-showcase-copy p {
    max-width: 380px;
    font-size: 0.9rem;
  }

  .login-showcase-grid,
  .login-security {
    display: none;
  }

  .login-panda {
    right: 26px;
    bottom: 0;
    width: 220px;
    max-width: 36%;
  }

  .login-panel {
    margin-top: -26px;
    border-left: 0;
    border-radius: 0 0 28px 28px;
    background: transparent;
    padding: 0 24px 28px;
  }

  .login-form-card {
    width: min(100%, 500px);
    padding: 30px;
  }
}

@media (max-width: 640px) {
  .login-screen {
    padding: 8px;
  }

  .login-card {
    width: min(100%, 520px);
    margin: 0 auto;
    overflow: hidden;
    border-radius: 22px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(238, 250, 244, 0.96) 43%, #f8fcfa 43.2%, #f8fcfa 100%),
      url("./assets/garimpanda-login-bg.webp") center top / cover no-repeat;
  }

  .login-showcase {
    min-height: 310px;
    gap: 12px;
    border-radius: 22px 22px 0 0;
    padding: 18px 18px 42px;
  }

  .login-logo-mark {
    width: 44px;
    height: 42px;
    border-radius: 13px;
  }

  .login-logo strong {
    font-size: 1.45rem;
  }

  .login-showcase-copy {
    max-width: none;
    padding-right: clamp(102px, 31vw, 150px);
  }

  .login-showcase-copy h2 {
    font-size: clamp(1.9rem, 8.2vw, 2.45rem);
    letter-spacing: -0.045em;
    line-height: 1.02;
  }

  .login-showcase-copy p {
    max-width: 250px;
    font-size: 0.84rem;
    line-height: 1.4;
  }

  .login-panda {
    z-index: 4;
    right: 12px;
    bottom: 44px;
    width: clamp(124px, 34vw, 166px);
    max-width: 42vw;
  }

  .login-panel {
    margin-top: -28px;
    border-radius: 0 0 22px 22px;
    padding: 0 10px 12px;
  }

  .login-form-card {
    gap: 14px;
    border-radius: 20px;
    padding: 22px 18px 18px;
  }

  .login-panel .login-logo-mobile {
    display: none;
  }

  .login-panel .login-header {
    display: grid;
  }

  .login-header h1 {
    font-size: 1.65rem;
  }

  .login-header p {
    display: none;
  }

  .login-input-shell,
  .login-submit,
  .google-login-button,
  .create-account-button {
    min-height: 50px;
  }

  .login-input-shell input {
    min-height: 48px;
    font-size: 1rem;
  }

  .privacy-banner {
    width: min(100% - 16px, 500px);
    margin: 12px auto 8px;
    border-radius: 18px;
    box-shadow: 0 14px 36px rgba(17, 24, 39, 0.14);
  }
}

@media (max-width: 380px) {
  .login-showcase {
    min-height: 292px;
    padding-inline: 16px;
  }

  .login-showcase-copy {
    padding-right: 96px;
  }

  .login-showcase-copy > span {
    font-size: 0.68rem;
    padding-inline: 10px;
  }

  .login-showcase-copy h2 {
    font-size: clamp(1.72rem, 8.4vw, 2rem);
  }

  .login-showcase-copy p {
    max-width: 220px;
    font-size: 0.8rem;
  }

  .login-panda {
    right: 8px;
    bottom: 46px;
    width: 120px;
  }

  .login-form-card {
    padding: 20px 14px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-submit,
  .google-login-button,
  .create-account-button,
  .password-toggle {
    transform: none !important;
  }
}

/* Panda alignment follow-up: reserve a dedicated illustration column on desktop. */
@media (min-width: 1081px) {
  .login-showcase-grid {
    width: clamp(288px, 49%, 312px);
  }

  .login-showcase-grid article {
    padding-inline: 10px;
  }

  .login-showcase-grid strong {
    font-size: 0.98rem;
    white-space: nowrap;
  }

  .login-security {
    width: min(100%, 310px);
    max-width: 310px;
  }

  .login-panda {
    right: 28px;
    bottom: 12px;
    width: 225px;
    max-width: none;
  }
}

@media (min-width: 981px) and (max-width: 1080px) {
  .login-showcase-grid {
    width: 270px;
  }

  .login-showcase-grid article {
    padding-inline: 10px;
  }

  .login-showcase-grid strong {
    font-size: 1rem;
  }

  .login-security {
    width: 260px;
    max-width: 260px;
  }

  .login-panda {
    right: 4px;
    bottom: 12px;
    width: 192px;
    max-width: none;
  }
}
