/* ARCpoint Labs — login/portal rebuild (local test build)
   Design tokens sampled from the original my.arcpointlabs.com */

:root {
  --blue: #169bec;
  --blue-hover: #0f88d3;
  --navy: #012b49;
  --teal: #19967d;
  --text: #212529;
  --muted: #6b7280;
  --border: #ced4da;
  --card-header-bg: rgba(0, 0, 0, 0.03);
  --card-header-border: rgba(0, 0, 0, 0.125);
  --card-shadow: 0 2px 5px rgba(0, 0, 0, 0.16), 0 2px 10px rgba(0, 0, 0, 0.12);
  --field-max: 330px;
  --card-max: 730px;
  --container: 1140px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: Lato, "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text);
  background: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- Navbar (full-width white bar, centered container) ---------- */
.navbar {
  background: #fff;
  min-height: 84px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 10;
}
.nav-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; margin-right: auto; }
.brand-img { height: 58px; width: auto; display: block; }

.nav-actions { display: flex; gap: 12px; }
.nav-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav-user { color: var(--muted); font-size: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 40px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  cursor: pointer;
}
.nav-toggle-bar { display: block; height: 2px; background: rgba(0, 0, 0, 0.55); border-radius: 2px; }

/* Navy band under the navbar (full width) */
.navbar-rule { height: 16px; background: var(--navy); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.btn-primary { background: var(--blue); color: #fff; padding: 13px 34px; }
.btn-primary:hover { background: var(--blue-hover); }
.btn-primary:focus-visible { outline: 3px solid rgba(22, 155, 236, 0.4); outline-offset: 2px; }

/* ---------- Hero (navy-tinted photo background, like the original) ---------- */
.hero {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(24px, 6vh, 90px) 16px 48px;
  background: #0b2f4a url("../img/hero-bg.jpg") center center / cover no-repeat;
}

/* ---------- Card ---------- */
.card {
  width: 100%;
  max-width: var(--card-max);
  background: #fff;
  border-radius: 4px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
}
.card-header {
  background: var(--card-header-bg);
  border-bottom: 1px solid var(--card-header-border);
  padding: 18px 20px;
  text-align: center;
}
.card-header h1 { margin: 0; color: var(--navy); font-weight: 700; font-size: 32px; }
.card-body { padding: 28px clamp(20px, 5vw, 48px) 36px; }

/* ---------- Forms ---------- */
.section-title { text-align: center; color: var(--text); font-size: 16px; margin: 8px 0 24px; letter-spacing: 0.3px; }

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: center;
  column-gap: 20px;
  margin-bottom: 18px;
}
.form-row > label { text-align: right; color: var(--text); font-size: 16px; }
.field { min-width: 0; }
.field-offset { grid-column: 2; }

input[type="email"], input[type="password"], input[type="text"] {
  width: 100%;
  max-width: var(--field-max);
  height: 42px;
  padding: 6px 12px;
  font-family: inherit;
  font-size: 16px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input[type="email"]:focus, input[type="password"]:focus, input[type="text"]:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 1px var(--teal);
}

.checkbox { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; color: var(--text); cursor: pointer; }
.checkbox input { width: 16px; height: 16px; }

/* ---------- Divider ---------- */
.divider { display: flex; align-items: center; gap: 14px; margin: 26px 0; color: var(--text); font-size: 15px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: rgba(0, 0, 0, 0.35); }

/* ---------- Links ---------- */
.card-links { margin-top: 22px; text-align: left; padding-left: calc(50% + 10px); }
.card-links a {
  display: block;
  color: var(--navy);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  text-decoration: none;
  margin-bottom: 6px;
}
.card-links a:hover { text-decoration: underline; }

/* ---------- Status note ---------- */
.form-note {
  margin: 20px 0 0;
  padding: 10px 14px;
  border-radius: 4px;
  background: #eef6ec;
  border: 1px solid #cfe3c8;
  color: #2f5d22;
  font-size: 14px;
}
.form-note.error { background: #fdecec; border-color: #f5c2c2; color: #9b1c1c; }

/* ---------- Dashboard ---------- */
.dash-body { text-align: center; }
.dash-welcome { font-size: 18px; margin: 6px 0 10px; }
.dash-sub { color: var(--muted); margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .nav-toggle { display: flex; }

  .nav-actions {
    display: none;
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 8px;
    background: #fff;
    padding: 12px 16px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
    z-index: 20;
  }
  .nav-actions.open { display: flex; }
  .nav-actions .btn { width: 100%; }

  .brand-img { height: 44px; }
  .nav-user { display: none; }

  .form-row { grid-template-columns: 1fr; column-gap: 0; row-gap: 6px; margin-bottom: 16px; }
  .form-row > label { text-align: left; }
  .field-offset { grid-column: 1; }
  input[type="email"], input[type="password"], input[type="text"] { max-width: 100%; }
  .card .btn-primary { width: 100%; }

  .card-links { padding-left: 0; text-align: center; }
  .card-header h1 { font-size: 26px; }
}
