/* Login page (Views/Account/Login.cshtml) — the established palette
   (canvas #315B8C, deep #27486E, primary/coral #F2765E, surface #F5EBDD,
   ink #413333). No new colors; the diagonal is the coral, echoing the
   dealer page. */
:root {
  --wf-blue: #315B8C;
  --wf-blue-deep: #27486E;
  --wf-coral: #F2765E;
  --wf-cream: #F5EBDD;
  --wf-ink: #413333;
  --wf-shape: 8px;
  --wf-shape-sm: 4px;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--wf-ink);
  font-size: 16px;
  line-height: 1.45;
}
.split { display: flex; min-height: 100vh; }
/* ── Left: brand panel ── */
.brand {
  flex: 0 0 50%;
  background: var(--wf-blue);
  color: #fff;
  padding: 3rem 3.2rem 2rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.brand::after {
  content: "";
  position: absolute;
  left: -20%;
  bottom: -55%;
  width: 120%;
  height: 95%;
  background: var(--wf-coral);
  transform: rotate(18deg);
  z-index: 0;
}
.brand > * { position: relative; z-index: 1; }
.logo { display: flex; align-items: center; gap: .7rem; }
.logo img { height: 3.1rem; width: auto; background: #fff; border-radius: .55rem; }
.logo strong { font-size: 1.35rem; font-weight: 700; letter-spacing: .01em; }
.logo span { display: block; font-size: .68rem; letter-spacing: .22em; opacity: .85; }
.brand h1 {
  margin: 3.2rem 0 .9rem;
  font-size: 2.55rem;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.01em;
}
.brand p { margin: 0; max-width: 24rem; opacity: .92; }
.brand footer { margin-top: auto; font-size: .82rem; opacity: .8; }
/* ── Right: cream panel + card ── */
.panel { flex: 1 1 50%; background: var(--wf-cream); display: flex; align-items: center; justify-content: center; padding: 2rem; }
.card {
  background: #fff;
  border-radius: var(--wf-shape);
  box-shadow: 0 10px 30px rgba(39, 72, 110, .18);
  width: min(26rem, 100%);
  padding: 2.1rem 2.3rem 1.4rem;
}
.card h2 { margin: 0; font-size: 1.45rem; font-weight: 700; }
.sub { margin: .3rem 0 1.3rem; font-size: .92rem; color: #5b6b7a; }
.f { margin-bottom: 1rem; }
label { display: block; font-size: .8rem; font-weight: 600; color: #5b6b7a; margin-bottom: .3rem; }
input[type=text], input[type=password] {
  width: 100%;
  font: inherit;
  color: var(--wf-ink);
  background: #fff;
  border: 1px solid #b9c4cd;
  border-radius: var(--wf-shape-sm);
  padding: .62rem .7rem;
}
input[type=text]:focus, input[type=password]:focus {
  outline: none;
  border-color: var(--wf-blue);
  box-shadow: 0 0 0 1px var(--wf-blue);
}
.prow { position: relative; }
.prow input { padding-right: 2.4rem; }
.eye {
  position: absolute; right: .35rem; top: 50%; transform: translateY(-50%);
  border: none; background: none; cursor: pointer; padding: .3rem;
  font-size: 1rem; opacity: .55;
}
.eye:hover { opacity: .9; }
.link-r { display: inline-block; text-align: right; font-size: .85rem; font-weight: 600; color: var(--wf-blue); text-decoration: none; margin: -.4rem 0 1rem; }
.link-r:hover { color: var(--wf-coral); }
.keep { display: flex; align-items: center; gap: .5rem; font-size: .92rem; margin-bottom: 1.15rem; }
.keep label { margin: 0; font-size: .92rem; color: var(--wf-ink); font-weight: 500; display: flex; align-items: center; gap: .5rem; }
.keep input { width: 1.05rem; height: 1.05rem; accent-color: var(--wf-blue); }
.btn {
  width: 100%;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--wf-blue);
  border: none;
  border-radius: 999px;
  padding: .72rem 1rem;
  cursor: pointer;
}
.btn:hover { background: var(--wf-blue-deep); }
hr { border: none; border-top: 1px solid #e5ddcf; margin: 1.3rem 0 1rem; }
.req { margin: 0; text-align: center; font-size: .9rem; color: #5b6b7a; }
.req a { color: var(--wf-blue); font-weight: 600; text-decoration: none; }
.req a:hover { color: var(--wf-coral); }
.err {
  margin: 0 0 1rem;
  padding: .55rem .8rem;
  border: 1px solid var(--wf-coral);
  border-radius: var(--wf-shape-sm);
  background: #FDEEE9;
  color: #8C3B25;
  font-size: .9rem;
}
@media (max-width: 900px) {
  .split { flex-direction: column; }
  .brand { flex: none; padding: 2rem; }
  .brand h1 { font-size: 1.8rem; margin-top: 2rem; }
  .brand::after { height: 70%; bottom: -35%; }
  .panel { padding: 1.5rem; }
}
