:root {
  --ink: #0f1c24;
  --ink-soft: #3d4f5c;
  --muted: #6b7c88;
  --line: #d5dde3;
  --paper: #f4f7f9;
  --card: #ffffff;
  --brand: #0b6e6a;
  --brand-deep: #085450;
  --brand-soft: #e6f3f2;
  --danger: #9b1c1c;
  --danger-bg: #fdecec;
  --danger-line: #f0c4c4;
  --shadow: 0 18px 50px rgba(15, 28, 36, 0.12);
  --radius: 14px;
  --font: "IBM Plex Sans", system-ui, sans-serif;
  --serif: "IBM Plex Serif", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, #d9ecea 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #e8eef3 0%, transparent 50%),
    linear-gradient(180deg, #eef3f6 0%, var(--paper) 45%, #e8eef2 100%);
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  border-bottom: 1px solid rgba(15, 28, 36, 0.08);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
}

.topbar-inner,
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topbar-inner {
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background:
    linear-gradient(145deg, #12a39c 0%, var(--brand) 55%, #064e4b 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 9px 8px 9px 8px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-left-color: transparent;
  transform: rotate(-20deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.brand-text span {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.top-links {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
}

.top-links a {
  color: var(--ink-soft);
}

.main {
  flex: 1;
  width: min(1080px, calc(100% - 2.5rem));
  margin: 2rem auto 2.5rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.5rem;
  align-items: stretch;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 4px);
  padding: 2.4rem 2.2rem;
  color: #eef8f7;
  background:
    linear-gradient(155deg, rgba(8, 84, 80, 0.2), transparent 40%),
    linear-gradient(180deg, #0c4f4c 0%, #0a3d3b 48%, #082f2e 100%);
  box-shadow: var(--shadow);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 75%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 28rem;
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9fd9d5;
  font-weight: 600;
}

.hero-copy h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 3vw, 2.55rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.lede {
  margin: 1rem 0 1.5rem;
  color: #c5dedc;
  font-size: 1.02rem;
  line-height: 1.55;
}

.trust-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.trust-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.92rem;
  color: #d7ecea;
}

.trust-list li::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #4fd1c5;
  box-shadow: 0 0 0 4px rgba(79, 209, 197, 0.18);
}

.login-panel {
  display: flex;
}

.login-card {
  width: 100%;
  background: var(--card);
  border: 1px solid rgba(15, 28, 36, 0.08);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  padding: 2rem 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.login-head h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

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

.auth-error {
  margin-top: 1.1rem;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  background: var(--danger-bg);
  border: 1px solid var(--danger-line);
  color: var(--danger);
  font-size: 0.9rem;
  font-weight: 500;
}

.login-form {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.95rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field > span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.field input[type="email"],
.field input[type="password"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.78rem 0.9rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: #fcfdfe;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus {
  border-color: #7bbbb7;
  box-shadow: 0 0 0 3px rgba(11, 110, 106, 0.15);
}

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.remember {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
  cursor: pointer;
  user-select: none;
}

.remember input {
  accent-color: var(--brand);
}

.subtle-link {
  font-size: 0.875rem;
}

.submit {
  margin-top: 0.25rem;
  border: 0;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  background: linear-gradient(180deg, #12827d 0%, var(--brand) 100%);
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset;
  transition: filter 0.15s ease, transform 0.05s ease;
}

.submit:hover:not(:disabled) {
  filter: brightness(1.05);
}

.submit:active:not(:disabled) {
  transform: translateY(1px);
}

.submit:disabled {
  opacity: 0.72;
  cursor: wait;
}

.login-foot {
  margin-top: auto;
  padding-top: 1.35rem;
  border-top: 1px solid #e8eef2;
  display: grid;
  gap: 0.45rem;
}

.login-foot p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.login-foot .tiny {
  font-size: 0.75rem;
  color: var(--muted);
}

.footer {
  border-top: 1px solid rgba(15, 28, 36, 0.08);
  background: rgba(255, 255, 255, 0.55);
}

.footer-inner {
  min-height: 56px;
  font-size: 0.78rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.footer-links a {
  color: var(--muted);
}

@media (max-width: 860px) {
  .main {
    grid-template-columns: 1fr;
    margin-top: 1.25rem;
  }

  .hero-panel {
    min-height: auto;
    padding: 1.6rem 1.4rem;
  }

  .top-links {
    display: none;
  }
}
