* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--login-bg-color, #10151f);
  color: #e5e7eb;
}

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

.login-visual {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 64px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, .92), rgba(20, 83, 45, .72)),
    var(--login-bg-image, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='700' viewBox='0 0 900 700'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.12'%3E%3Cpath d='M120 180h180v92H120zM420 110h180v92H420zM420 330h180v92H420zM690 220h150v92H690z'/%3E%3Cpath d='M300 226h120M510 202v128M600 376h90M600 156h40q50 0 50 50v60'/%3E%3C/g%3E%3C/svg%3E")) center/cover;
}

.brand-mark {
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, .4);
  background: rgba(255, 255, 255, .12);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 800;
  letter-spacing: .04em;
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.login-visual.has-logo .brand-mark {
  width: 74px;
  height: 74px;
  border: 0;
  background: transparent;
  border-radius: 18px;
  justify-content: center;
}

.login-visual.has-logo .brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.login-visual h1 {
  margin: 28px 0 12px;
  font-size: 48px;
  line-height: 1;
}

.login-visual p {
  max-width: 520px;
  font-size: 18px;
  color: #cbd5e1;
}

.login-card {
  align-self: center;
  margin: 32px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .76));
  backdrop-filter: blur(20px) saturate(1.2);
  color: #111827;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .35);
}

.login-card h2 {
  margin: 0 0 4px;
  font-size: 24px;
}

.login-card label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.login-card input {
  height: 44px;
  padding: 0 12px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: rgba(255, 255, 255, .94);
  font: inherit;
  color: #0f172a;
}

.login-card input:focus {
  outline: 2px solid #22c55e33;
  border-color: #16a34a;
}

.login-card button {
  height: 44px;
  border: 0;
  border-radius: 7px;
  background: #16a34a;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.login-card button:hover {
  background: #15803d;
}

.error {
  padding: 10px 12px;
  border: 1px solid #fecaca;
  border-radius: 7px;
  background: #fee2e2;
  color: #991b1b;
  font-size: 13px;
}

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

  .login-visual {
    min-height: 280px;
    padding: 32px;
  }

  .login-visual h1 {
    font-size: 34px;
  }

  .login-visual.has-logo .brand-mark {
    width: 62px;
    height: 62px;
  }

  .login-card {
    margin: 24px;
  }
}
