:root {
  --ink: #24211f;
  --muted: #7e7974;
  --line: #e8e3de;
  --paper: #fbfaf8;
  --terracotta: #a7593f;
  --terracotta-dark: #85432f;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", sans-serif;
}

button, input { font: inherit; }

.login-screen {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(420px, 1.1fr) minmax(430px, .9fr);
}

.login-visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  overflow: hidden;
  padding: 64px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(27,22,19,.08), rgba(27,22,19,.78)),
    radial-gradient(circle at 72% 22%, #b49784 0, #816757 34%, #332a25 75%);
}

.login-visual::before {
  position: absolute;
  inset: 0;
  opacity: .12;
  background-image: url("../images/logo.png");
  background-position: center;
  background-size: 420px;
  content: "";
}

.login-visual-content { position: relative; z-index: 1; max-width: 560px; }
.login-brand-image { width: 112px; height: 112px; margin-bottom: 36px; border-radius: 8px; object-fit: cover; box-shadow: 0 20px 50px rgba(0,0,0,.2); }
.eyebrow { margin: 0 0 6px; color: var(--terracotta); font-size: 10px; font-weight: 700; letter-spacing: .16em; }
.login-visual .eyebrow { color: #ead8cd; }
.login-visual h1 { margin: 12px 0 18px; font: 500 clamp(40px, 5vw, 68px)/1.05 "Playfair Display", serif; }
.login-visual p:last-child { max-width: 460px; color: #e4dad4; line-height: 1.7; }

.login-panel { display: grid; min-height: 100vh; padding: 42px; place-items: center; }
.login-card { width: min(430px, 100%); }
.login-logo { width: 78px; height: 78px; margin-bottom: 32px; border: 1px solid var(--line); border-radius: 8px; object-fit: cover; }
.login-card h2 { margin: 0; font: 600 34px "Playfair Display", serif; }
.login-subtitle { margin: 8px 0 30px; color: var(--muted); font-size: 13px; }

.form-field { display: grid; gap: 6px; margin-bottom: 16px; }
.form-field label { font-size: 11px; font-weight: 700; }
.form-field input { width: 100%; min-height: 44px; padding: 10px 11px; border: 1px solid #dcd6d1; border-radius: 7px; outline: none; background: #fff; }
.form-field input:focus { border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(167,89,63,.1); }

.password-field { position: relative; }
.password-field input { padding-right: 48px; }
.password-field button { position: absolute; top: 50%; right: 7px; width: 34px; height: 34px; border: 0; color: var(--muted); background: transparent; cursor: pointer; transform: translateY(-50%); }
.login-error { min-height: 18px; margin: -3px 0 10px; color: #a6493c; font-size: 11px; }
.recaptcha-wrap { display: flex; justify-content: center; margin: 4px 0 16px; overflow: hidden; }
.primary-button { min-height: 48px; padding: 0 17px; border: 1px solid var(--terracotta); border-radius: 7px; color: #fff; background: var(--terracotta); cursor: pointer; font-weight: 700; }
.primary-button:hover { background: var(--terracotta-dark); }
.login-button { width: 100%; }
.login-help { display: block; margin-top: 16px; color: var(--muted); font-size: 10px; line-height: 1.5; text-align: center; }

@media (max-width: 1100px) {
  .login-screen { grid-template-columns: 1fr 1fr; }
  .login-visual { padding: 42px; }
}

@media (max-width: 820px) {
  .login-screen { grid-template-columns: 1fr; }
  .login-visual { display: none; }
  .login-panel { padding: 28px; }
}
