:root {
  --ink: #101820;
  --muted: #647282;
  --surface: #ffffff;
  --line: #dce5ea;
  --teal: #0f766e;
  --coral: #f9735b;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  background:
    linear-gradient(120deg, rgba(15, 118, 110, 0.16), rgba(249, 115, 91, 0.1)),
    #f4f7f8;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.login-shell {
  width: min(1080px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.8fr);
  gap: 24px;
  align-items: stretch;
}

.login-copy,
.login-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 44px rgba(16, 24, 32, 0.12);
}

.login-copy {
  position: relative;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(24px, 5vw, 48px);
  background:
    linear-gradient(90deg, rgba(12, 18, 24, 0.88), rgba(12, 18, 24, 0.54)),
    url("assets/meta-automation-hero.png") center / cover;
  color: #fff;
}

.login-copy.admin {
  background:
    linear-gradient(90deg, rgba(12, 18, 24, 0.9), rgba(12, 18, 24, 0.64)),
    url("assets/meta-automation-hero.png") center / cover;
}

.brand {
  position: absolute;
  top: clamp(24px, 5vw, 48px);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.brand span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--teal);
}

.kicker {
  margin: 0 0 10px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 640px;
  margin-bottom: 16px;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.login-copy p:last-child {
  max-width: 560px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
}

.login-card {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: clamp(24px, 4vw, 40px);
}

h2 {
  margin-bottom: 8px;
  font-size: 1.7rem;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 850;
}

input {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  font: inherit;
}

button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

input:focus,
button:focus,
a:focus {
  outline: 3px solid rgba(249, 115, 91, 0.34);
  outline-offset: 3px;
}

.login-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.admin-access {
  justify-self: start;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.login-error {
  display: none;
  margin: 0;
  padding: 12px;
  border-radius: 8px;
  background: #fff5eb;
  color: #9a3412;
  font-weight: 800;
}

.login-error.visible {
  display: block;
}

@media (max-width: 820px) {
  body {
    place-items: stretch;
  }

  .login-shell {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .login-copy,
  .login-card {
    border-radius: 0;
  }

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