:root {
  --logo-blue: #0057b8;
  --logo-green: #00a66f;
  --logo-purple: #7b2cff;
  --logo-pink: #ff3f8e;
  --logo-yellow: #ffc928;
  --brand: #00966c;
  --brand-dark: #007855;
  --ink: #17202a;
  --muted: #5e6873;
  --line: #dce7e2;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-strong: #ffffff;
  --focus-ring: 0 0 0 4px rgba(0, 150, 108, 0.14);
  --shadow: 0 26px 70px rgba(17, 24, 39, 0.12);
  --shadow-soft: 0 14px 34px rgba(17, 24, 39, 0.08);
  font-family: "Roboto", Arial, sans-serif;
}

* {
  box-sizing: border-box;
  font-family: inherit;
}

body {
  margin: 0;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(112deg, rgba(0, 166, 111, 0.12) 0%, rgba(0, 166, 111, 0) 35%),
    linear-gradient(292deg, rgba(255, 201, 40, 0.2) 0%, rgba(255, 201, 40, 0) 38%),
    linear-gradient(180deg, #f8fbf7 0%, #eef7f2 100%);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.64;
}

a {
  color: inherit;
}

.hidden {
  display: none !important;
}

.login-page {
  min-height: 100vh;
}

.login-shell {
  width: min(1160px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 56px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(380px, 430px);
  gap: 30px;
  align-items: center;
  min-width: 0;
}

.login-hero,
.auth-panel {
  border: 1px solid rgba(220, 231, 226, 0.88);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  min-width: 0;
}

.login-hero {
  position: relative;
  min-height: 538px;
  padding: 44px;
  overflow: hidden;
  display: grid;
  align-content: space-between;
  gap: 42px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(247, 251, 248, 0.86)),
    #ffffff;
}

.login-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--logo-purple), var(--logo-pink), var(--logo-yellow), var(--logo-green), var(--logo-blue));
}

.login-hero::after {
  content: "";
  position: absolute;
  right: -46px;
  bottom: 28px;
  width: 260px;
  height: 260px;
  border: 32px solid rgba(0, 87, 184, 0.08);
  border-left-color: rgba(0, 166, 111, 0.12);
  border-bottom-color: rgba(255, 63, 142, 0.1);
  transform: rotate(45deg);
  pointer-events: none;
}

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

.login-logo {
  width: 54px;
  height: 54px;
  object-fit: cover;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.wordmark {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  padding-bottom: 10px;
  font-size: 25px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0;
}

.wordmark span {
  color: var(--logo-blue);
}

.wordmark strong {
  color: var(--logo-green);
}

.wordmark::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 0;
  bottom: 0;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--logo-purple) 0 14%,
    var(--logo-pink) 14% 27%,
    var(--logo-yellow) 27% 43%,
    var(--logo-green) 43% 69%,
    var(--logo-blue) 69% 100%
  );
  transform: scaleX(0.74);
  transform-origin: left;
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  max-width: 660px;
  min-width: 0;
}

.hero-kicker,
.auth-kicker {
  width: fit-content;
  border-radius: 999px;
  border: 1px solid rgba(0, 166, 111, 0.18);
  background: #edf9f4;
  color: var(--brand-dark);
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 900;
}

.hero-copy h1 {
  margin: 0;
  max-width: 620px;
  font-size: 32px;
  line-height: 1.04;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.hero-copy p {
  margin: 0;
  max-width: 560px;
  color: #3c4852;
  font-size: 18px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.hero-flow {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-flow li {
  min-width: 0;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 3px 11px;
  align-items: center;
  border: 1px solid rgba(220, 231, 226, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  padding: 13px;
}

.hero-flow .material-symbols-rounded {
  grid-row: span 2;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--flow-color, var(--brand));
  box-shadow: 0 10px 20px rgba(0, 150, 108, 0.14);
  font-variation-settings: "FILL" 1, "wght" 700, "GRAD" 0, "opsz" 24;
}

.hero-flow li:nth-child(1) .material-symbols-rounded {
  --flow-color: var(--logo-blue);
}

.hero-flow li:nth-child(2) .material-symbols-rounded {
  --flow-color: var(--logo-purple);
}

.hero-flow li:nth-child(3) .material-symbols-rounded {
  --flow-color: var(--logo-green);
}

.hero-flow strong,
.hero-flow small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-flow strong {
  font-size: 14px;
  font-weight: 900;
}

.hero-flow small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.auth-panel {
  align-self: center;
  padding: 30px;
  background: var(--surface);
  backdrop-filter: blur(18px);
}

.auth-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
  min-width: 0;
}

.auth-heading h2 {
  margin: 2px 0 0;
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: 0;
}

.auth-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-bottom: 22px;
  padding: 5px;
  border: 1px solid #dfe9e5;
  border-radius: 999px;
  background: #f1f6f3;
}

.segmented button {
  border: 0;
  border-radius: 999px;
  min-height: 42px;
  padding: 0 12px;
  background: transparent;
  color: #69727b;
  font-weight: 900;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.segmented button.active {
  color: var(--brand-dark);
  background: white;
  box-shadow: 0 9px 22px rgba(17, 24, 39, 0.08);
}

.form-stack {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: #2b3440;
  font-size: 14px;
  font-weight: 800;
}

input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  background: #fbfdfc;
  color: var(--ink);
  padding: 11px 13px;
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

input:focus {
  border-color: var(--brand);
  background: #fff;
  box-shadow: var(--focus-ring);
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 48px;
}

.field-icon-button {
  position: absolute;
  top: 50%;
  right: 7px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #5f6b76;
  background: transparent;
  transform: translateY(-50%);
  transition: background 0.16s ease, color 0.16s ease;
}

.field-icon-button:hover,
.field-icon-button:focus-visible {
  background: #edf7f2;
  color: var(--brand-dark);
  outline: none;
}

.material-symbols-rounded {
  direction: ltr;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Material Symbols Rounded";
  font-size: 20px;
  font-style: normal;
  font-weight: normal;
  letter-spacing: normal;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  font-feature-settings: "liga";
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  font-variation-settings: "FILL" 0, "wght" 650, "GRAD" 0, "opsz" 24;
}

.primary-button,
.secondary-button,
.text-button {
  min-height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  font-weight: 900;
  white-space: nowrap;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.primary-button {
  margin-top: 2px;
  padding: 0 18px;
  background: linear-gradient(90deg, var(--brand), #00a66f);
  color: #fff;
  box-shadow: 0 13px 28px rgba(0, 150, 108, 0.22);
}

.primary-button:hover,
.primary-button:focus-visible {
  background: linear-gradient(90deg, var(--brand-dark), #00966c);
  box-shadow: 0 16px 34px rgba(0, 120, 85, 0.28);
  transform: translateY(-1px);
  outline: none;
}

.primary-button .material-symbols-rounded {
  font-size: 19px;
  font-variation-settings: "FILL" 1, "wght" 700, "GRAD" 0, "opsz" 24;
}

.secondary-button {
  width: 100%;
  padding: 0 18px;
  border: 1px solid #cfe8df;
  background: #f3fbf8;
  color: var(--brand-dark);
}

.secondary-button:hover,
.secondary-button:focus-visible {
  background: #e8f7f1;
  box-shadow: 0 12px 24px rgba(0, 150, 108, 0.11);
  transform: translateY(-1px);
  outline: none;
}

.text-button {
  justify-self: start;
  min-height: 28px;
  padding: 0;
  background: transparent;
  color: var(--brand-dark);
  font-size: 13px;
}

.text-button:hover,
.text-button:focus-visible {
  color: #005f46;
  text-decoration: underline;
  outline: none;
}

.status-line {
  min-height: 22px;
  margin: 16px 0 0;
  color: #b42318;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.status-line.success {
  color: var(--brand-dark);
}

.status-line.info {
  color: var(--logo-blue);
}

.auth-footer {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e4ece8;
  display: flex;
  gap: 8px;
  align-items: center;
  color: #5d6872;
  font-size: 12px;
  font-weight: 800;
}

.auth-footer .material-symbols-rounded {
  color: var(--logo-blue);
  font-size: 18px;
  font-variation-settings: "FILL" 1, "wght" 700, "GRAD" 0, "opsz" 20;
}

@media (max-width: 980px) {
  .login-shell {
    min-height: auto;
    padding: 28px 0;
    grid-template-columns: 1fr;
  }

  .login-hero {
    min-height: 420px;
  }

  .auth-panel {
    width: min(100%, 540px);
    justify-self: center;
  }
}

@media (max-width: 640px) {
  body {
    background:
      linear-gradient(145deg, rgba(0, 166, 111, 0.14), rgba(0, 166, 111, 0) 48%),
      #f8fbf7;
  }

  .login-shell {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    padding: 12px;
    gap: 12px;
  }

  .login-hero {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    min-height: auto;
    padding: 28px 22px;
    gap: 30px;
  }

  .login-hero::after {
    right: -120px;
    bottom: 46px;
    width: 220px;
    height: 220px;
  }

  .login-logo {
    width: 44px;
    height: 44px;
  }

  .wordmark {
    font-size: 23px;
  }

  .hero-copy h1 {
    max-width: 100%;
    font-size: 22px;
    line-height: 1.08;
  }

  .hero-copy p {
    max-width: 32ch;
    font-size: 15px;
  }

  .hero-flow {
    width: 100%;
    max-width: 100%;
    grid-template-columns: 1fr;
  }

  .auth-panel {
    padding: 22px;
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
  }

  .auth-heading h2 {
    font-size: 24px;
  }
}

@media (max-width: 390px) {
  .login-brand {
    gap: 9px;
  }

  .wordmark {
    font-size: 21px;
  }

  .segmented {
    grid-template-columns: 1fr;
    border-radius: 8px;
  }
}
