/*
 * WPP Client Login — v4.2
 * Split-screen: cinematic left + clean form right. Site font inherited.
 */
:root {
  --l-ink:    #1a1219;
  --l-parch:  #f8f4ef;
  --l-clay:   #bd6a4c;
  --l-clay-dk:#a3563b;
  --l-line:   #e4ddd5;
  --l-smoke:  #7a7270;
  --l-r:      10px;
  --l-ease:   cubic-bezier(.22,.61,.36,1);
}
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }

.wpp-login-body {
  min-height: 100vh; background: var(--l-parch);
  font-family: inherit; -webkit-font-smoothing: antialiased;
}
.wpp-login-page {
  display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100vh;
}

/* ── Visual Panel ── */
.wpp-login-visual {
  position: relative; overflow: hidden;
  background: var(--l-ink);
  display: flex; flex-direction: column;
  padding: 48px 52px; color: #f8f4ef;
}
.wpp-login-visual-top    { flex-shrink: 0; }
.wpp-login-visual-body   { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 40px; padding: 40px 0; }
.wpp-login-visual-bottom { flex-shrink: 0; }

/* Grain overlay */
.wpp-grain {
  position: absolute; inset: 0; opacity: .038; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Studio mark */
.wpp-login-mark { display: flex; align-items: center; gap: 11px; position: relative; z-index: 1; }
.wpp-login-mark-icon {
  width: 44px; height: 44px; border-radius: var(--l-r);
  background: rgba(189,106,76,.22);
  border: 1px solid rgba(189,106,76,.38);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.wpp-login-mark-icon svg { width: 22px; height: 22px; stroke: #e8c4b8; }
.wpp-login-mark-name { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }

/* Tagline */
.wpp-login-tagline { position: relative; z-index: 1; }
.wpp-login-tagline-eyebrow {
  font-size: 10px; font-weight: 600; letter-spacing: 2.5px;
  text-transform: uppercase; color: rgba(232,196,184,.8);
  display: block; margin-bottom: 18px;
}
.wpp-login-tagline h2 {
  font-size: clamp(28px, 3.2vw, 42px); font-weight: 700;
  line-height: 1.1; letter-spacing: -.025em;
}
.wpp-login-tagline h2 em { font-style: italic; color: #e8c4b8; font-weight: 400; }
.wpp-login-tagline-sub {
  font-size: 13px; line-height: 1.7; color: rgba(248,244,239,.5); max-width: 340px;
}

/* Polaroids */
.wpp-polaroids {
  display: flex; gap: 0; position: relative; z-index: 1;
  height: 140px; align-items: flex-start;
}
.wpp-polaroid {
  background: #f8f4ef; padding: 8px 8px 24px;
  border-radius: 3px; box-shadow: 0 12px 36px rgba(0,0,0,.4);
  transform: rotate(var(--r)) translateY(var(--y));
  transition: transform .4s var(--l-ease);
  margin-right: -18px;
}
.wpp-polaroid:hover { transform: rotate(0deg) translateY(-6px) scale(1.03); z-index: 2; }
.wpp-polaroid-img { width: 100px; height: 90px; border-radius: 2px; }

/* ── Form Panel ── */
.wpp-login-panel {
  display: flex; align-items: center; justify-content: center;
  padding: 60px 44px; background: #fff;
}
.wpp-login-form-inner { width: 100%; max-width: 360px; }

.wpp-login-heading-group { margin-bottom: 32px; }
.wpp-login-heading { font-size: 26px; font-weight: 750; letter-spacing: -.02em; color: var(--l-ink); margin-bottom: 6px; }
.wpp-login-sub    { font-size: 14px; color: var(--l-smoke); line-height: 1.5; }

/* Error */
.wpp-login-error {
  display: flex; align-items: center; gap: 9px;
  background: #fbecea; color: #b8392b;
  border-left: 3px solid #b8392b;
  border-radius: var(--l-r); padding: 11px 14px;
  font-size: 13px; margin-bottom: 20px;
}
.wpp-login-error svg { width: 16px; height: 16px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 2; }

/* Fields */
.wpp-login-form { display: flex; flex-direction: column; gap: 18px; }
.wpp-field { display: flex; flex-direction: column; gap: 6px; }
.wpp-field-label {
  font-size: 11px; font-weight: 700; letter-spacing: .5px;
  text-transform: uppercase; color: var(--l-smoke);
}
.wpp-field-input {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--l-line); border-radius: var(--l-r);
  font-family: inherit; font-size: 14px; color: var(--l-ink);
  background: #fff; transition: border-color .15s var(--l-ease), box-shadow .15s var(--l-ease);
}
.wpp-field-input:focus {
  outline: none; border-color: var(--l-clay);
  box-shadow: 0 0 0 3px rgba(189,106,76,.1);
}
.wpp-field-input::placeholder { color: #b8b0aa; }

/* Password toggle */
.wpp-pw-wrap  { position: relative; }
.wpp-pw-wrap .wpp-field-input { padding-right: 44px; }
.wpp-pw-eye {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--l-smoke);
  display: flex; padding: 4px; transition: color .15s;
}
.wpp-pw-eye:hover { color: var(--l-ink); }
.wpp-pw-eye svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; }

/* Row: remember + forgot */
.wpp-login-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: -4px;
}
.wpp-remember {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--l-smoke); cursor: pointer;
}
.wpp-remember input { width: 15px; height: 15px; accent-color: var(--l-clay); cursor: pointer; }
.wpp-forgot { font-size: 13px; color: var(--l-clay); text-decoration: none; font-weight: 600; }
.wpp-forgot:hover { text-decoration: underline; }

/* Submit */
.wpp-login-submit {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px;
  background: var(--l-ink); color: #f8f4ef; border: none;
  border-radius: var(--l-r); font-family: inherit; font-size: 14.5px; font-weight: 650;
  cursor: pointer; letter-spacing: -.01em; margin-top: 4px;
  transition: background .16s var(--l-ease), transform .14s var(--l-ease), box-shadow .16s var(--l-ease);
  box-shadow: 0 4px 16px rgba(26,18,25,.18);
}
.wpp-login-submit svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2; }
.wpp-login-submit:hover  { background: #2e2430; box-shadow: 0 6px 22px rgba(26,18,25,.26); }
.wpp-login-submit:active { transform: translateY(1px); }

/* Note */
.wpp-login-note {
  margin-top: 28px; font-size: 12.5px; color: var(--l-smoke);
  line-height: 1.7; text-align: center;
}
.wpp-login-note a { color: var(--l-clay); text-decoration: none; font-weight: 600; }

/* Responsive */
@media (max-width: 860px) {
  .wpp-login-page { grid-template-columns: 1fr; }
  .wpp-login-visual { display: none; }
  .wpp-login-panel { min-height: 100vh; padding: 48px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .wpp-login-page *, .wpp-polaroid { transition: none !important; animation: none !important; }
}
