:root {
  --ink: #10221d;
  --muted: #63716c;
  --line: #dfe8e3;
  --green: #0d8f4f;
  --green-dark: #07653a;
  --gold: #f6c343;
  --mint: #d8f4e7;
  --red: #d9412f;
  --paper: #f7faf7;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(12, 44, 30, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: inherit;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
}

.brand-panel {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 34px clamp(26px, 5vw, 72px);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(6, 58, 39, 0.98), rgba(10, 134, 74, 0.92)),
    radial-gradient(circle at 78% 24%, rgba(246, 195, 67, 0.28), transparent 32%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.08) 25%, transparent 25% 50%, rgba(255, 255, 255, 0.08) 50% 75%, transparent 75%);
  background-size: auto, auto, 38px 38px;
}

.brand-panel::after {
  position: absolute;
  right: -120px;
  bottom: -140px;
  width: 420px;
  height: 420px;
  content: "";
  border: 72px solid rgba(246, 183, 60, 0.22);
  border-radius: 50%;
}

.topbar,
.brand-mark,
.service-strip,
.mobile-brand,
.form-options,
.secondary-actions {
  display: flex;
  align-items: center;
}

.topbar {
  position: relative;
  z-index: 1;
  justify-content: space-between;
  gap: 24px;
}

.brand-mark,
.mobile-brand {
  gap: 12px;
  text-decoration: none;
}

.logo-box {
  display: grid;
  width: 96px;
  height: 64px;
  flex: 0 0 96px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.logo-box img {
  display: block;
  max-width: 88px;
  max-height: 56px;
  object-fit: contain;
}

.brand-mark strong,
.mobile-brand strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.1;
}

.brand-mark small,
.mobile-brand small {
  display: block;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.78rem;
}

.support-link {
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
}

.brand-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: 80px 0 58px;
}

.eyebrow,
.status-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow {
  padding: 9px 14px;
  color: #153424;
  background: rgba(246, 183, 60, 0.95);
  font-size: 0.78rem;
}

.brand-content h1 {
  max-width: 680px;
  margin: 24px 0 18px;
  font-size: clamp(2.45rem, 5vw, 5.2rem);
  line-height: 0.98;
  font-weight: 800;
}

.brand-content p {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.75;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.quick-actions span {
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.service-strip {
  position: relative;
  z-index: 1;
  gap: 14px;
  flex-wrap: wrap;
}

.service-strip div {
  min-width: 150px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.service-strip strong,
.service-strip span {
  display: block;
}

.service-strip strong {
  color: var(--gold);
  font-size: 1.45rem;
}

.service-strip span {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
}

.form-panel {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 36px clamp(18px, 4vw, 64px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(247, 250, 247, 0.96)),
    radial-gradient(circle at top right, rgba(246, 183, 60, 0.18), transparent 36%);
}

.login-card {
  width: min(100%, 480px);
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(13, 143, 79, 0.13);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.mobile-brand {
  display: none;
}

.mobile-brand small {
  color: var(--muted);
}

.card-heading {
  margin-bottom: 28px;
}

.status-pill {
  padding: 7px 11px;
  color: var(--green-dark);
  background: var(--mint);
  font-size: 0.72rem;
}

.card-heading h2 {
  margin: 14px 0 8px;
  font-size: clamp(2rem, 4vw, 2.65rem);
  font-weight: 800;
}

.card-heading p,
.signup-copy,
.form-options,
.divider {
  color: var(--muted);
}

.form-label {
  margin-bottom: 8px;
  color: #24372f;
  font-size: 0.92rem;
  font-weight: 700;
}

.form-control {
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 500;
}

.form-control:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 0.2rem rgba(13, 143, 79, 0.13);
}

.password-control {
  position: relative;
}

.password-control .form-control {
  padding-right: 78px;
}

.show-password {
  position: absolute;
  top: 50%;
  right: 8px;
  min-width: 58px;
  min-height: 38px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 7px;
  color: var(--green-dark);
  background: rgba(13, 143, 79, 0.1);
  font-size: 0.82rem;
  font-weight: 800;
}

.text-link,
.signup-copy a {
  color: var(--green-dark);
  text-decoration: none;
  font-weight: 800;
}

.form-options {
  justify-content: space-between;
  gap: 18px;
  margin: 18px 0 24px;
  font-size: 0.9rem;
}

.form-check-input:checked {
  border-color: var(--green);
  background-color: var(--green);
}

.login-btn {
  min-height: 54px;
  border: 0;
  border-radius: 8px;
  background: var(--green);
  font-weight: 800;
}

.login-btn:hover,
.login-btn:focus {
  background: var(--green-dark);
}

.form-message {
  min-height: 22px;
  margin-top: 14px;
  color: var(--green-dark);
  font-size: 0.92rem;
  font-weight: 700;
}

.form-message.error {
  color: var(--red);
}

.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 28px 0 18px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.divider::before,
.divider::after {
  height: 1px;
  flex: 1;
  content: "";
  background: var(--line);
}

.secondary-actions {
  gap: 12px;
}

.secondary-actions .btn {
  flex: 1;
  min-height: 46px;
  border-color: var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 800;
}

.signup-copy {
  margin: 22px 0 0;
  text-align: center;
  font-size: 0.94rem;
}

@media (max-width: 991.98px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .brand-panel {
    min-height: auto;
    padding: 28px;
  }

  .brand-content {
    padding: 54px 0 36px;
  }

  .brand-content h1 {
    font-size: clamp(2.2rem, 9vw, 4rem);
  }

  .form-panel {
    min-height: auto;
    padding: 32px 18px 44px;
  }
}

@media (max-width: 575.98px) {
  .brand-panel {
    display: none;
  }

  .form-panel {
    min-height: 100vh;
    padding: 18px;
  }

  .login-card {
    padding: 24px 18px;
  }

  .mobile-brand {
    display: flex;
  }

  .mobile-brand .logo-box {
    width: 86px;
    height: 58px;
    flex-basis: 86px;
  }

  .mobile-brand .logo-box img {
    max-width: 80px;
    max-height: 50px;
  }

  .form-options,
  .secondary-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .secondary-actions .btn {
    width: 100%;
  }
}
