:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --panel: #ffffff;
  --ink: #17202a;
  --muted: #697586;
  --line: #d9e1ea;
  --primary: #136f63;
  --primary-dark: #0e554c;
  --accent: #b84a38;
  --soft: #e9f3f1;
  --shadow: 0 24px 70px rgba(22, 32, 42, 0.13);
}

* {
  box-sizing: border-box;
}

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

a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.72fr);
  gap: 32px;
  align-items: center;
  padding: 32px 0;
}

.brand-panel {
  min-height: 620px;
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(130deg, rgba(12, 31, 39, 0.84), rgba(19, 111, 99, 0.64)),
    url("https://images.unsplash.com/photo-1551836022-d5d88e9218df?auto=format&fit=crop&w=1400&q=80")
      center/cover;
  box-shadow: var(--shadow);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px;
}

.brand-copy {
  max-width: 620px;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 20px;
  font-size: clamp(2.6rem, 5vw, 4.9rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.lead {
  max-width: 560px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
  line-height: 1.65;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-top: 28px;
}

.status-strip div {
  min-height: 96px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.13);
  padding: 18px;
  backdrop-filter: blur(12px);
}

.metric {
  display: block;
  font-size: 2rem;
  font-weight: 850;
  line-height: 1;
}

.label {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.88rem;
}

.login-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 34px;
}

.form-header {
  margin-bottom: 28px;
}

.form-header h2 {
  margin-bottom: 8px;
  font-size: 2rem;
  letter-spacing: 0;
}

.form-header p {
  margin-bottom: 0;
  color: var(--muted);
}

.login-form {
  display: grid;
  gap: 12px;
}

.login-form label {
  color: #2d3948;
  font-size: 0.92rem;
  font-weight: 750;
}

input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  padding: 0 14px;
  outline: none;
}

input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(19, 111, 99, 0.13);
}

.password-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.icon-button {
  min-width: 72px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
  color: var(--primary-dark);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.form-options {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin: 8px 0 2px;
  font-size: 0.9rem;
}

.check-row {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-weight: 650;
}

.check-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.form-message {
  min-height: 22px;
  margin: 0;
  color: var(--accent);
  font-size: 0.92rem;
  line-height: 1.45;
}

.form-message.success {
  color: var(--primary-dark);
}

.primary-button {
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 6px;
  background: var(--primary);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}

.primary-button:hover,
.primary-button:focus {
  background: var(--primary-dark);
}

.location-notice {
  margin-top: 10px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.location-notice p {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.secondary-button {
  min-height: 40px;
  border: 1px solid var(--primary);
  border-radius: 6px;
  background: #ffffff;
  color: var(--primary-dark);
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  padding: 0 14px;
}

.secondary-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.location-notice .location-message {
  min-height: 18px;
  margin: 8px 0 0;
}

@media (max-width: 860px) {
  .shell {
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
    padding: 18px 0;
  }

  .brand-panel {
    min-height: 430px;
    padding: 28px;
  }

  .login-panel {
    padding: 26px;
  }
}

@media (max-width: 540px) {
  .shell {
    width: min(100% - 20px, 1120px);
  }

  .brand-panel {
    min-height: 390px;
    padding: 22px;
  }

  h1 {
    font-size: 2.45rem;
  }

  .status-strip {
    grid-template-columns: 1fr;
  }

  .status-strip div {
    min-height: 76px;
  }

  .form-options {
    align-items: flex-start;
    flex-direction: column;
  }
}
