* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
.login-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(390px, 1fr) 1fr; }
.brand-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(38px, 5vw, 72px);
  color: #fff8f1;
  background:
    radial-gradient(circle at 85% 14%, rgba(228, 110, 50, .27), transparent 30%),
    radial-gradient(circle at 16% 90%, rgba(160, 104, 68, .22), transparent 34%),
    #181411;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.brand-panel::after {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  right: -190px;
  bottom: 8%;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.018);
}
.brand-mark, .mobile-brand { display: flex; align-items: center; gap: 14px; }
.brand-mark img { width: 118px; max-height: 62px; object-fit: contain; filter: brightness(0) invert(1); }
.brand-mark span, .mobile-brand span { padding-left: 14px; border-left: 1px solid rgba(255,255,255,.25); font-size: 15px; font-weight: 800; letter-spacing: .15em; }
.brand-message { position: relative; z-index: 1; max-width: 590px; }
.eyebrow { margin: 0 0 14px; color: var(--communication); font-size: 11px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.brand-message h1 { margin: 0; max-width: 570px; font-size: clamp(35px, 4.2vw, 64px); line-height: 1.03; letter-spacing: -.045em; }
.brand-message > p:last-child { max-width: 490px; margin: 25px 0 0; color: #c9bbb0; font-size: 15px; line-height: 1.7; }
.brand-footer { position: relative; z-index: 1; margin: 0; color: #9f9187; font-size: 11px; }
.form-panel { padding: 42px; display: grid; place-items: center; background: #faf8f5; }
.login-card { width: min(410px, 100%); }
.mobile-brand { display: none; margin-bottom: 50px; color: var(--ink); }
.mobile-brand img { width: 112px; max-height: 58px; object-fit: contain; }
.mobile-brand span { border-color: var(--line-strong); }
.login-card h2 { margin: 0; font-size: 36px; line-height: 1.1; letter-spacing: -.035em; }
.intro { margin: 12px 0 34px; color: var(--muted); font-size: 14px; line-height: 1.55; }
form { display: grid; }
label { margin: 0 0 8px; font-size: 12px; font-weight: 780; }
input {
  width: 100%;
  height: 50px;
  margin-bottom: 20px;
  padding: 0 15px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus { border-color: var(--communication); box-shadow: 0 0 0 3px rgba(228,110,50,.12); }
.password-field { position: relative; }
.password-field input { padding-right: 64px; }
.password-field button {
  position: absolute;
  top: 8px;
  right: 8px;
  height: 34px;
  padding: 0 10px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}
.password-field button:hover { background: var(--surface-3); color: var(--ink); }
.login-error { min-height: 18px; margin: -5px 0 13px; color: var(--danger); font-size: 11px; line-height: 1.45; }
.submit-button {
  height: 52px;
  padding: 0 18px;
  color: white;
  background: var(--communication);
  border: 0;
  border-radius: 11px;
  box-shadow: 0 9px 24px rgba(228,110,50,.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 820;
  cursor: pointer;
  transition: transform .15s, filter .15s;
}
.submit-button:hover { transform: translateY(-1px); filter: brightness(.98); }
.submit-button:disabled { cursor: wait; opacity: .65; transform: none; }
@media (max-width: 820px) {
  .login-layout { grid-template-columns: 1fr; }
  .brand-panel { display: none; }
  .form-panel { min-height: 100vh; padding: 30px 24px; }
  .mobile-brand { display: flex; }
  .login-card h2 { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
