:root {
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #172230;
  background: #eef1f5;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 32px;
}

button,
input {
  font: inherit;
}

.login-shell {
  width: min(1040px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  overflow: hidden;
  border: 1px solid #d9dee6;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(15, 35, 60, 0.1);
}

.login-card {
  padding: clamp(36px, 6vw, 72px);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 64px;
  font-size: 18px;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 7px;
  border-radius: 7px;
  background: #60a5fa;
}

.brand-mark span {
  height: 2px;
  border-radius: 2px;
  background: #10243d;
}

.brand-mark span:nth-child(2) {
  width: 70%;
}

.brand-mark span:nth-child(3) {
  width: 40%;
}

.eyebrow {
  margin: 0 0 12px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.04em;
}

.description {
  max-width: 540px;
  margin: 18px 0 36px;
  color: #687587;
  font-size: 15px;
  line-height: 1.75;
}

label {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
}

.key-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  border: 1px solid #cfd6e0;
  border-radius: 10px;
  background: #ffffff;
}

.key-field:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

input {
  min-width: 0;
  padding: 15px 16px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #172230;
}

.key-field button {
  padding: 0 16px;
  border: 0;
  background: transparent;
  color: #2563eb;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.submit-button {
  width: 100%;
  margin-top: 18px;
  padding: 15px 18px;
  border: 0;
  border-radius: 10px;
  color: #ffffff;
  background: #1d4ed8;
  font-weight: 750;
  cursor: pointer;
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.status {
  margin: 14px 0 0;
  padding: 11px 12px;
  border-radius: 8px;
  color: #963f35;
  background: #fff0e9;
  font-size: 13px;
}

.hidden {
  display: none;
}

.security-note {
  margin: 18px 0 0;
  color: #8994a3;
  font-size: 11px;
}

.login-visual {
  position: relative;
  min-height: 620px;
  margin: 0;
  background: #10243d;
}

.login-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.login-visual figcaption {
  position: absolute;
  right: 20px;
  bottom: 20px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 7px;
  color: #ffffff;
  background: rgba(16, 36, 61, 0.88);
  font-size: 11px;
}

@media (max-width: 760px) {
  body {
    align-items: start;
    padding: 0;
    background: #ffffff;
  }

  .login-shell {
    grid-template-columns: 1fr;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .login-card {
    padding: 28px 20px 36px;
  }

  .brand-row {
    margin-bottom: 48px;
  }

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