@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-800.ttf") format("truetype");
}

@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/public-sans-300.ttf") format("truetype");
}

@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/public-sans-600.ttf") format("truetype");
}

@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/public-sans-700.ttf") format("truetype");
}

:root {
  --bg: #F5F0EA;
  --ink: #000000;
  --paper: #FFFFFF;
  --primary: #F1D962;
  --primary-dark: #D3A900;
  --muted: #878787;
  --line: #8D8D8D;
  --error: #7C424C;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Public Sans", Arial, sans-serif;
  font-weight: 300;
}

.login-page {
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, 520px) minmax(460px, 672px);
  gap: clamp(44px, 5vw, 84px);
  min-height: 100vh;
  max-width: 1420px;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 86px) clamp(28px, 5vw, 52px);
  align-items: center;
}

.intro {
  align-self: center;
  max-width: 580px;
}

.brand-mark {
  display: inline-block;
  margin-bottom: 48px;
  color: #E94F1B;
  font-family: "Bricolage Grotesque", "Public Sans", sans-serif;
  font-size: 22px;
  line-height: 0.96;
  text-decoration: none;
}

.brand-mark span {
  display: block;
  font-family: "Public Sans", Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.intro h1 {
  max-width: 560px;
  margin: 0;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.09;
  font-weight: 300;
  letter-spacing: 0;
}

.intro strong {
  display: block;
  font-weight: 700;
}

.login-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(82vh, 710px);
  padding: clamp(42px, 8vw, 118px);
  background: var(--paper);
  border-radius: 10px;
}

.login-form {
  width: min(100%, 380px);
  text-align: center;
}

.login-form h2 {
  margin: 0 0 36px;
  font-family: "Bricolage Grotesque", "Public Sans", sans-serif;
  font-size: 32px;
  line-height: 1.06;
  letter-spacing: 0;
}

.field {
  margin-bottom: 14px;
  text-align: left;
}

label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.05;
}

input {
  width: 100%;
  min-height: 60px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-family: "Public Sans", Arial, sans-serif;
  font-size: 20px;
  font-weight: 300;
}

input:focus {
  border-color: var(--ink);
  outline: 3px solid rgba(241, 217, 98, 0.55);
  outline-offset: 2px;
}

.button-row {
  margin-top: 26px;
  text-align: center;
}

button {
  min-width: 124px;
  min-height: 44px;
  padding: 12px 24px;
  border: 0;
  border-radius: 24px;
  background: var(--primary);
  color: var(--ink);
  font-family: "Public Sans", Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

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

.errornote {
  margin: -12px 0 24px;
  color: var(--error);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.signup-note {
  margin: 22px 0 0;
  color: #666666;
  font-size: 12px;
  line-height: 1.35;
}

.signup-note a { color: inherit; }

.powered-by {
  position: absolute;
  right: clamp(28px, 5vw, 52px);
  bottom: 30px;
  color: var(--primary-dark);
  font-size: 16px;
  font-weight: 700;
  line-height: 0.95;
  text-align: right;
}

.powered-by span {
  display: block;
  color: var(--ink);
  font-size: 6px;
  font-weight: 600;
}

@media (max-width: 880px) {
  .login-page {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px 18px 64px;
    align-items: start;
  }

  .brand-mark { margin-bottom: 24px; }
  .intro h1 { font-size: 34px; }

  .login-card {
    min-height: auto;
    padding: 42px 22px;
  }

  .powered-by {
    right: 18px;
    bottom: 18px;
  }
}
