* {
  box-sizing: border-box;
}

:root {
  --font: "Inter", Arial, sans-serif;
  --ink: #172026;
  --muted: #66727d;
  --line: #dde7ea;
  --surface: #ffffff;
  --accent: #087f8c;
  --accent-dark: #056774;
  --danger: #c2412d;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  background: #f5f8f7;
}

.login-page {
  background:
    linear-gradient(135deg, rgba(8, 127, 140, 0.14), transparent 35%),
    linear-gradient(315deg, rgba(243, 183, 63, 0.18), transparent 34%),
    #f5f8f7;
}

main.login-layout {
  width: min(100% - 32px, 1080px);
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: center;
  padding: 34px 0;
}

.intro,
.login-panel,
.card,
.metrics article {
  border: 1px solid rgba(221, 229, 234, 0.8);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 18px 48px rgba(23, 32, 38, 0.07);
}

.intro {
  min-height: 620px;
  padding: 48px;
  background:
    linear-gradient(150deg, rgba(8, 127, 140, 0.1), transparent 45%),
    linear-gradient(25deg, rgba(243, 183, 63, 0.17), transparent 38%),
    #ffffff;
}

.login-panel {
  padding: 36px;
}

.brand-lockup,
.mobile-brand,
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  display: block;
  width: min(100%, 300px);
  height: auto;
  object-fit: contain;
}

.mobile-brand {
  display: none;
  margin-bottom: 28px;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 16px;
  background: var(--accent);
  color: #ffffff;
  font-size: 26px;
  font-weight: 900;
}

.brand-name {
  font-size: 22px;
  font-weight: 900;
}

.brand-subtitle {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

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

.intro h1 {
  max-width: 560px;
  margin: 74px 0 18px;
  font-size: 56px;
  line-height: 1.08;
}

h1 {
  margin-bottom: 0;
  font-size: 38px;
  line-height: 1.1;
}

h2 {
  margin-bottom: 12px;
  font-size: 26px;
}

.subtitle,
.card p,
.stat-label {
  color: var(--muted);
  line-height: 1.5;
}

.stats,
.metrics,
.page-grid {
  display: grid;
  gap: 16px;
}

.stats {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 54px;
}

.stat {
  min-height: 112px;
  padding: 18px;
  border: 1px solid #e4ecef;
  border-radius: 18px;
  background: #f7faf9;
}

.stat-value {
  margin-bottom: 8px;
  color: var(--accent-dark);
  font-size: 26px;
  font-weight: 900;
}

label {
  display: block;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 800;
}

.required,
.error-message {
  color: var(--danger);
}

.field {
  margin-bottom: 24px;
}

.input-wrap {
  position: relative;
}

input,
select,
textarea {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  font: inherit;
  outline: none;
}

textarea {
  min-height: 110px;
  padding-top: 14px;
  resize: vertical;
}

input[type="password"],
input.password-field {
  padding-right: 58px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(8, 127, 140, 0.12);
}

.icon-button {
  position: absolute;
  top: 50%;
  right: 14px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #7a8790;
  cursor: pointer;
  transform: translateY(-50%);
}

.options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 2px 0 22px;
}

.remember {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 14px;
  font-weight: 750;
}

input[type="checkbox"] {
  width: 22px;
  min-height: 22px;
  accent-color: var(--accent);
}

a {
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: none;
}

.error-message {
  min-height: 20px;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 750;
}

.status-message {
  min-height: 22px;
  margin: 14px 0 0;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 800;
}

.button,
.login-button,
.tool-grid button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 0;
  border-radius: 14px;
  background: var(--accent);
  color: #ffffff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.button:disabled,
.login-button:disabled,
.tool-grid button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.login-button {
  width: 100%;
}

.button.secondary {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
}

aside {
  padding: 28px;
  border-right: 1px solid var(--line);
  background: var(--surface);
}

nav {
  display: grid;
  gap: 8px;
  margin-top: 34px;
}

nav a {
  padding: 13px 14px;
  border-radius: 12px;
  color: var(--ink);
}

nav a.active,
nav a:hover {
  background: #e9f6f3;
  color: var(--accent-dark);
}

.page-main {
  padding: 34px;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 24px;
}

.metrics article,
.card {
  padding: 22px;
}

.metrics span {
  display: block;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.metrics strong {
  font-size: 30px;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.page-grid.two {
  grid-template-columns: 0.9fr 1.1fr;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 14px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.table th {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  main.login-layout,
  .app-shell,
  .page-grid.two {
    grid-template-columns: 1fr;
  }

  .intro {
    min-height: auto;
    order: 2;
  }

  .login-panel {
    order: 1;
  }

  .brand-lockup {
    display: none;
  }

  .mobile-brand {
    display: flex;
  }

  aside {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  nav,
  .metrics,
  .tool-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .intro,
  .login-panel,
  .page-main {
    padding: 22px;
  }

  .intro h1 {
    margin-top: 0;
    font-size: 38px;
  }

  .page-header {
    align-items: flex-start;
    flex-direction: column;
  }
}
