:root {
  --ink: #172024;
  --muted: #65727a;
  --line: #d6e1e3;
  --green: #5fbd58;
  --green-dark: #3f9047;
  --charcoal: #151b1f;
  --panel: rgba(255, 255, 255, 0.96);
  --shadow: 0 24px 70px rgba(7, 11, 13, 0.34);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(115deg, rgba(11, 16, 19, 0.96), rgba(29, 39, 43, 0.9)),
    url("/assets/brand/brand-beam-green.png") right top / 620px auto no-repeat,
    var(--charcoal);
  font-family: "Segoe UI", Arial, sans-serif;
}

button,
input {
  font: inherit;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 520px) minmax(340px, 420px);
  justify-content: center;
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0;
  overflow: hidden;
}

.auth-brand {
  position: relative;
  min-width: 0;
  color: #fff;
}

.auth-brand::after {
  content: "";
  position: absolute;
  left: 170px;
  top: 18px;
  width: 74px;
  height: 74px;
  background: url("/assets/brand/pay-solutions-p-mark-large.png") center / contain no-repeat;
  opacity: 0.2;
}

.auth-brand img {
  width: 176px;
  max-width: 56vw;
  height: auto;
  margin-bottom: 34px;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.28));
}

.auth-brand p,
.eyebrow {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-brand h1 {
  margin: 6px 0 0;
  max-width: 100%;
  font-size: clamp(36px, 4.5vw, 58px);
  line-height: 1;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.auth-card {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 16px;
  width: 100%;
  min-width: 0;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-top: 4px solid var(--green);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.auth-card h2 {
  margin: 0;
  font-size: 28px;
}

.auth-copy,
.status-line {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(95, 189, 88, 0.18);
}

button {
  min-height: 46px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: linear-gradient(180deg, var(--green), var(--green-dark));
  font-weight: 900;
  cursor: pointer;
}

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

@media (max-width: 760px) {
  .auth-shell {
    grid-template-columns: 1fr;
    gap: 24px;
    width: min(440px, calc(100% - 28px));
    align-content: center;
    overflow: visible;
  }

  .auth-brand {
    text-align: left;
  }

  .auth-brand img {
    width: 138px;
    margin-bottom: 18px;
  }

  .auth-brand::after {
    left: 138px;
    top: 6px;
    width: 48px;
    height: 48px;
  }

  .auth-brand h1 {
    font-size: 38px;
  }

  .auth-card {
    padding: 22px;
  }
}
