:root {
  --ink: #171717;
  --muted: #6e6a64;
  --paper: #f4f1eb;
  --card: #fffdf9;
  --line: #ded8ce;
  --accent: #c56f3c;
  --accent-dark: #934920;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(32, 26, 21, .14);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(197, 111, 60, .18), transparent 34%),
    radial-gradient(circle at bottom right, rgba(147, 73, 32, .10), transparent 30%),
    var(--paper);
}

button, input { font: inherit; }

a { color: inherit; }

.login-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.login-page::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(222, 216, 206, .75);
  border-radius: 30px;
  pointer-events: none;
}

.login-shell {
  width: min(960px, 100%);
  min-height: 590px;
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  background: rgba(255, 253, 249, .74);
  border: 1px solid rgba(222, 216, 206, .95);
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.login-visual {
  position: relative;
  min-height: 100%;
  background: #211f1d;
  overflow: hidden;
}

.login-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(.92) contrast(.96);
  transform: scale(1.02);
}

.login-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(23, 23, 23, .08), rgba(23, 23, 23, .70)),
    linear-gradient(45deg, rgba(197, 111, 60, .18), transparent 55%);
}

.visual-overlay {
  position: absolute;
  z-index: 2;
  left: 24px;
  right: 24px;
  bottom: 24px;
  padding: 20px;
  border-radius: 18px;
  color: white;
  background: rgba(29, 28, 26, .52);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(14px);
}

.login-page .brand {
  text-decoration: none;
  font-weight: 900;
  letter-spacing: -.04em;
}

.login-page .brand-logo {
  display: inline-grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  gap: .18em;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
  font-size: 1rem;
}

.login-page .brand-logo span { display: inline; }

.login-page .brand-orange { color: var(--accent); }

.login-page .brand-black { color: var(--ink); }

.login-page .visual-overlay .brand-black { color: #fff; }

.login-page .brand-mobile {
  display: none;
  align-self: flex-start;
  margin-bottom: 26px;
}

.login-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 6vw, 66px);
}

.eyebrow {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  color: var(--accent-dark);
  background: #f9e9dc;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

h1 {
  margin: 16px 0 10px;
  font-size: clamp(2.25rem, 5vw, 4.4rem);
  line-height: 1;
  letter-spacing: -.055em;
}

.login-error {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(147, 73, 32, .22);
  border-radius: 14px;
  color: var(--accent-dark);
  background: #f9e9dc;
  font-weight: 700;
}

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

.form-group {
  display: grid;
  gap: 8px;
}

label {
  color: #2d2a27;
  font-size: .9rem;
  font-weight: 850;
}

input {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .82);
  color: var(--ink);
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

input::placeholder { color: #aaa39a; }

input:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(197, 111, 60, .18);
}

.btn-login {
  min-height: 54px;
  margin-top: 8px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: var(--accent);
  color: white;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(197, 111, 60, .26);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.btn-login:hover {
  transform: translateY(-1px);
  background: var(--accent-dark);
  box-shadow: 0 14px 30px rgba(147, 73, 32, .28);
}

.btn-login:active { transform: translateY(0); }

@media (max-width: 820px) {
  .login-page { padding: 18px; }

  .login-page::before { display: none; }

  .login-shell {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .login-visual {
    min-height: 210px;
  }

  .visual-overlay {
    left: 16px;
    right: 16px;
    bottom: 16px;
    padding: 16px;
  }

  .login-page .brand-logo {
    grid-template-columns: 1fr;
    gap: 0;
    font-size: .86rem;
  }

  .login-page .brand-logo .brand-black { font-size: .72em; }

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

@media (max-width: 520px) {
  .login-page {
    align-items: stretch;
    padding: 0;
  }

  .login-shell {
    width: 100%;
    min-height: 100dvh;
    border-radius: 0;
    border: 0;
  }

  .login-visual {
    min-height: 185px;
  }

  .login-panel {
    justify-content: start;
    padding: 28px 20px 34px;
  }

  .visual-overlay { display: none; }

  .login-page .brand-mobile { display: inline-grid; }

  h1 { font-size: 2.55rem; }

  input, .btn-login { min-height: 52px; }
}
