:root {
  --page-bg: #f7f9fc;
  --panel-bg: #ffffff;
  --text: #111827;
  --muted: #64748b;
  --line: #dbe3ee;
  --primary: #0f766e;
  --primary-dark: #115e59;
  --accent: #e11d48;
  --focus: rgba(15, 118, 110, 0.18);
  --shadow: 0 18px 48px rgba(15, 23, 42, 0.10);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(15, 23, 42, 0.045) 1px, transparent 1px),
    var(--page-bg);
  background-size: 42px 42px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1fr);
}

.brand-panel {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  padding: 56px;
  background:
    linear-gradient(160deg, rgba(15, 23, 42, 0.96), rgba(20, 83, 77, 0.96)),
    #0f172a;
  color: #f8fafc;
}

.brand-mark {
  width: 128px;
  height: 128px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

.brand-mark img {
  width: 108px;
  height: 108px;
  display: block;
  object-fit: contain;
}

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

.eyebrow {
  margin: 0 0 12px;
  color: #99f6e4;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-copy h1 {
  margin: 0;
  color: #ffffff;
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: 0;
}

.brand-copy p:last-child {
  margin: 18px 0 0;
  color: #cbd5e1;
  font-size: 17px;
  line-height: 1.65;
}

.login-panel {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 24px;
}

.login-card {
  width: min(100%, 420px);
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-bg);
  box-shadow: var(--shadow);
}

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

.form-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: 0;
}

.form-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.message-area {
  margin-bottom: 18px;
  padding: 11px 12px;
  border: 1px solid rgba(225, 29, 72, 0.28);
  border-radius: 8px;
  background: rgba(225, 29, 72, 0.08);
  color: #9f1239;
  font-size: 13px;
  line-height: 1.45;
}

.field {
  display: block;
  margin-bottom: 16px;
}

.field span {
  display: block;
  margin-bottom: 7px;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

.field input {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field input::placeholder {
  color: #94a3b8;
}

.field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--focus);
}

.submit-button {
  width: 100%;
  height: 46px;
  margin-top: 6px;
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
  transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.submit-button:hover {
  background: var(--primary-dark);
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.22);
  transform: translateY(-1px);
}

.submit-button:active {
  transform: translateY(0);
}

@media (max-width: 820px) {
  body {
    background: var(--page-bg);
  }

  .login-page {
    grid-template-columns: 1fr;
  }

  .brand-panel {
    min-height: auto;
    padding: 28px 24px 30px;
    gap: 26px;
  }

  .brand-mark {
    width: 92px;
    height: 92px;
  }

  .brand-mark img {
    width: 78px;
    height: 78px;
  }

  .brand-copy h1 {
    font-size: 32px;
  }

  .brand-copy p:last-child {
    font-size: 15px;
  }

  .login-panel {
    min-height: auto;
    padding: 24px;
  }

  .login-card {
    padding: 24px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  }
}
