/* Maxwell CRM — login page */
:root {
  color-scheme: light;
  --navy: #082e55; --navy-2: #0f4278; --navy-deep: #051d38; --brand-red: #c6171b;
  --bg: #ffffff; --surface: #fff; --border: #cdd5e2; --text: #0f1b33; --muted: #6f7b93; --focus: #e6ecf8;
  --brand-grad: linear-gradient(135deg, #082e55 0%, #0f4278 100%);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; background: var(--bg); color: var(--text);
       font: 14px/1.55 Poppins, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--navy); font-weight: 600; text-decoration: none; }
a:hover { text-decoration: underline; }

.hero { position: relative; overflow: hidden; color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
        background: radial-gradient(circle at 80% 10%, rgba(255,255,255,.12), transparent 45%),
                    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); }
/* brushed-steel strip, a nod to stainless kitchen equipment */
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14px;
               background: repeating-linear-gradient(90deg, rgba(255,255,255,.4) 0 1px, rgba(0,0,0,.04) 1px 3px),
                           linear-gradient(115deg, #fdfdfe, #d6dbe4 30%, #f7f8fa 55%, #cfd5df 80%, #f2f4f7); }
.wordmark { display: flex; align-items: center; gap: 12px; }
.mark { width: 44px; height: 40px; border: 3px solid #fff; border-radius: 5px; display: grid; place-items: center; font: italic 800 22px/1 Poppins, sans-serif; transform: skewX(-8deg); }
.w1 { font: italic 700 24px/1 Poppins, sans-serif; letter-spacing: .03em; }
.w2 { font: italic 600 10.5px/1 Poppins, sans-serif; letter-spacing: .45em; margin-top: 6px; color: #c9d4ee; }
.hero h2 { font: 700 clamp(28px, 3.2vw, 42px)/1.15 Poppins, sans-serif; letter-spacing: -.01em; margin: 0 0 14px; max-width: 15ch; }
.hero h2 span { color: #fff; box-shadow: inset 0 -0.16em 0 var(--brand-red); }
.hero p { color: #c3cfea; max-width: 44ch; margin: 0; font-weight: 500; }
.points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; color: #dfe2ff; font-weight: 500; }
.points li { display: flex; gap: 10px; align-items: center; }
.points li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none;
                     background: rgba(124, 92, 255, .35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='white' stroke-width='3' viewBox='0 0 24 24'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center/11px no-repeat; }
.hero small { color: #8d95c8; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }

.panel { display: grid; place-items: center; padding: 32px 20px; }
form, .box { width: 100%; max-width: 380px; }
.eyebrow { font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-red); margin: 0 0 6px; }
h1 { font: 700 28px/1.2 Poppins, sans-serif; letter-spacing: -.01em; margin: 0 0 6px; }
p.sub { margin: 0 0 24px; color: var(--muted); font-weight: 500; }
label { display: block; font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 14px; }
input { display: block; width: 100%; margin-top: 6px; height: 46px; font: 500 14px Poppins, sans-serif; color: var(--text); padding: 0 16px;
        border: 1px solid var(--border); border-radius: 12px; background: var(--surface); outline: none; transition: border-color .15s, box-shadow .15s; }
input:focus { border-color: var(--navy); box-shadow: 0 0 0 4px var(--focus); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
button { width: 100%; height: 48px; margin-top: 6px; font: 600 15px Poppins, sans-serif; border: 0; border-radius: 12px;
         background: var(--navy); color: #fff; cursor: pointer; box-shadow: 0 10px 24px rgba(8, 46, 85, .3); transition: filter .15s, transform .1s; }
button:hover { filter: brightness(1.06); }
button:active { transform: translateY(1px); }
button:disabled { opacity: .6; cursor: default; }
.error { display: none; margin: 0 0 16px; padding: 11px 14px; border-radius: 12px; background: #fdecec; color: #b42318; font-weight: 600; font-size: 13px; }
.alt { margin-top: 18px; text-align: center; color: var(--muted); }
.fine { margin-top: 10px; font-size: 12px; color: var(--muted); text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

@media (max-width: 860px) {
  body { grid-template-columns: 1fr; }
  .hero { padding: 28px 24px 32px; }
  .hero h2 { font-size: 26px; }
  .points, .hero small { display: none; }
  .hero { padding: 18px 20px 20px; gap: 12px; }
  .hero h2 { font-size: 20px; margin: 0; }
  .hero p { display: none; }
  .brand-logo img { width: 170px; }
  input { font-size: 16px; }  /* stops iPhones zooming in on the field */
  .row2 { grid-template-columns: 1fr; gap: 0; }
}
.error.info { background: #eef3ff; color: #1f3d8a; border-color: #cdd9ff; }
.forgot-link { margin: 14px 0 0; text-align: center; font-size: 13.5px; }
.forgot-link a, .back-link a { color: #1f4fa8; font-weight: 600; text-decoration: none; }
.forgot-link a:hover, .back-link a:hover { text-decoration: underline; }
.back-link { margin: 16px 0 0; text-align: center; font-size: 13.5px; }
.ok-msg { margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; background: #effaf3; color: #157a3e; border: 1px solid #b7e4c7; font-weight: 500; font-size: 13.5px; line-height: 1.5; }
.hint-line { font-size: 12px; color: #66708a; margin: -6px 0 12px; }
/* Maxwell Group logo on a white plate on the navy side */
.brand-logo { align-self: flex-start; padding: 12px 16px; background: #fff; border-radius: 14px; border-bottom: 3px solid var(--brand-red);
              box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.brand-logo img { display: block; width: 230px; max-width: 100%; height: auto; }
.forgot-link a, .back-link a { color: var(--navy); }
/* Match the dashboard's clean Maxwell brand treatment. */
.hero { background: var(--navy-deep); }
.hero::after { height: 3px; background: var(--brand-red); }
.hero .brand-logo { box-shadow: none; border-radius: 8px; border-bottom: 0; }
.points li::before { background-color: rgba(255,255,255,.15); }
.hero small { color: #b1bfd2; }
.panel button { border-radius: 8px; box-shadow: none; }
.panel input { border-radius: 8px; }
