:root {
  --auth-ink: #1c292d;
  --auth-muted: #5a696f;
  --auth-line: #d7dfdc;
  --auth-green: #17655b;
  --auth-green-dark: #143d37;
  --auth-surface: #f6f8f7;
}

.auth-body {
  background: #f4f7f5;
  color: var(--auth-ink);
  min-height: 100vh;
}

.auth-header {
  background: #fff;
  border-bottom: 1px solid var(--auth-line);
}

.auth-header-inner {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  min-height: 72px;
  padding: 12px 24px;
}

.auth-header-actions {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: flex-end;
}

.auth-brand {
  align-items: center;
  color: inherit;
  display: flex;
  gap: 12px;
  text-decoration: none;
}

.auth-brand img {
  border-radius: 4px;
}

.auth-brand span {
  display: grid;
  gap: 2px;
}

.auth-brand small,
.auth-back,
.auth-copy,
.project-card p,
.session-copy {
  color: var(--auth-muted);
}

.auth-back {
  font-size: 14px;
  font-weight: 700;
}

.auth-main {
  margin: 0 auto;
  max-width: 1180px;
  padding: 56px 24px 80px;
}

.login-layout {
  align-items: start;
  display: grid;
  gap: clamp(36px, 7vw, 90px);
  grid-template-columns: minmax(0, 1.1fr) minmax(330px, 0.75fr);
}

.auth-kicker {
  color: var(--auth-green);
  font-size: 12px;
  font-weight: 800;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.auth-intro h1,
.projects-header h1 {
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: 0;
  line-height: 1.04;
  margin: 0;
  max-width: 760px;
}

.auth-copy {
  font-size: 17px;
  line-height: 1.7;
  max-width: 660px;
}

.auth-boundaries {
  border-top: 1px solid var(--auth-line);
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 32px 0 0;
  padding: 22px 0 0;
}

.auth-boundaries li {
  padding-left: 24px;
  position: relative;
}

.auth-boundaries li::before {
  color: var(--auth-green);
  content: "✓";
  font-weight: 900;
  left: 0;
  position: absolute;
}

.login-form {
  background: #fff;
  border: 1px solid var(--auth-line);
  display: grid;
  gap: 18px;
  padding: 28px;
}

.login-form h2 {
  font-size: 22px;
  margin: 0 0 4px;
}

.login-form label {
  display: grid;
  font-size: 13px;
  font-weight: 700;
  gap: 7px;
}

.login-form input {
  border: 1px solid #aebbb7;
  border-radius: 4px;
  font: inherit;
  min-height: 46px;
  padding: 10px 12px;
  width: 100%;
}

.login-form input:focus {
  border-color: var(--auth-green);
  outline: 3px solid rgba(23, 101, 91, 0.16);
}

.auth-button,
.logout-button,
.project-link {
  align-items: center;
  background: var(--auth-green-dark);
  border: 1px solid var(--auth-green-dark);
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 800;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  text-decoration: none;
}

.auth-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.auth-message {
  background: #fff2ef;
  border-left: 4px solid #ad382f;
  color: #7b2923;
  display: none;
  font-size: 13px;
  margin: 0;
  padding: 11px 12px;
}

.auth-message.visible {
  display: block;
}

.auth-message.success {
  background: #edf8f2;
  border-left-color: #27734d;
  color: #1f5c3e;
}

.auth-note {
  color: var(--auth-muted);
  font-size: 12px;
  line-height: 1.55;
  margin: 0;
}

.projects-topline {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 40px;
}

.session-copy {
  display: grid;
  font-size: 13px;
  gap: 2px;
  text-align: right;
}

.logout-button {
  background: transparent;
  color: var(--auth-green-dark);
  min-height: 38px;
}

.projects-header {
  border-bottom: 1px solid var(--auth-line);
  padding-bottom: 26px;
}

.project-list {
  display: grid;
  gap: 0;
  margin-top: 24px;
}

.project-card {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--auth-line);
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 22px;
}

.project-card:first-child {
  border-top: 1px solid var(--auth-line);
}

.project-card h2 {
  font-size: 20px;
  margin: 0;
}

.project-card p {
  margin: 6px 0 0;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.project-meta span {
  background: var(--auth-surface);
  border: 1px solid var(--auth-line);
  border-radius: 3px;
  color: #405158;
  font-size: 11px;
  padding: 4px 7px;
}

.empty-projects {
  background: #fff;
  border: 1px solid var(--auth-line);
  margin-top: 24px;
  padding: 28px;
}

@media (max-width: 760px) {
  .auth-header-inner,
  .auth-main {
    padding-left: 18px;
    padding-right: 18px;
  }

  .login-layout {
    grid-template-columns: 1fr;
  }

  .auth-header-inner {
    align-items: flex-start;
    gap: 14px;
  }

  .auth-header-actions {
    align-items: flex-end;
    flex-direction: column-reverse;
    gap: 8px;
  }

  .projects-topline,
  .project-card {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .projects-topline {
    flex-direction: column;
  }

  .session-copy {
    text-align: left;
  }

  .project-link {
    width: 100%;
  }
}
