:root {
  --ink: #151515;
  --muted: #808080;
  --panel: #f3f3f3;
  --header: #7d7d7d;
  --yellow: #ffd200;
  --yellow-dark: #e5b900;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #fff;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

body {
  font-size: 18px;
  line-height: 1.18;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-shell {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 24px 40px 80px 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  margin-bottom: 20px;
  padding-left: 0;
}

.brand-mark {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-mark::after,
.brand-mark::before {
  display: none;
}


.brand-name {
  font-size: 27px;
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
  margin-left: 4px;
}

.top-grid {
  display: grid;
  grid-template-columns: 1.38fr 1fr;
  gap: 12px;
  align-items: start;
}

.panel {
  background: var(--panel);
}

.panel h1,
.panel h2 {
  margin: 0;
  padding: 17px 20px;
  background: var(--header);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}

.login-panel {
  min-height: 295px;
  padding-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  align-items: center;
  gap: 12px;
  padding: 26px 22px 0 16px;
}

.form-row + .form-row {
  padding-top: 25px;
}

.form-row label {
  text-align: right;
}

.form-row input {
  width: 100%;
  height: 29px;
  border: 1px solid #777;
  border-radius: 2px;
  background: #fff;
  font: inherit;
  padding: 2px 6px;
}

.card-row {
  display: flex;
  align-items: center;
  gap: 0;
  width: fit-content;
}

#netcode {
  width: 175px;
}

.card-prefix {
  height: 29px;
  padding: 2px 6px;
  border: 1px solid #777;
  border-right: none;
  border-radius: 2px 0 0 2px;
  background: #eaeaea;
  font: inherit;
  line-height: 25px;
  white-space: nowrap;
  color: #444;
}

.card-row input {
  width: 60px;
  height: 29px;
  border: 1px solid #777;
  border-radius: 0 2px 2px 0;
  background: #fff;
  font: inherit;
  padding: 2px 6px;
  text-align: center;
  letter-spacing: 2px;
}

.remember {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 15px;
  margin: 25px 30px 0 0;
  font-size: 16px;
}

.remember input {
  width: 19px;
  height: 19px;
  margin: 0;
  accent-color: var(--yellow);
}

.login-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 134px;
  height: 42px;
  margin: 26px 40px 0 auto;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff176 0%, #ffd200 55%, #f5c000 100%);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,.18);
}

.login-button:active {
  background: var(--yellow-dark);
}

.lock-icon {
  position: relative;
  width: 18px;
  height: 21px;
  margin-top: 1px;
}

.lock-icon::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0;
  width: 10px;
  height: 12px;
  border: 2px solid #5f5208;
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
}

.lock-icon::after {
  content: "";
  position: absolute;
  left: 1px;
  bottom: 0;
  width: 16px;
  height: 14px;
  border: 2px solid #5f5208;
  border-radius: 3px;
  background: transparent;
}

.forgot-link {
  display: block;
  margin: 24px 28px 0 0;
  text-align: right;
  font-size: 16px;
}

.side-column {
  display: grid;
  gap: 12px;
}

.link-panel {
}

.panel--plain {
  border: 1px solid #ddd;
}

.panel--plain h1,
.panel--plain h2 {
  background: transparent;
  color: var(--ink);
  border-bottom: 1px solid #ddd;
}

.link-panel--plain {
  border: 1px solid #ddd;
}

.panel-heading--plain {
  margin: 0;
  padding: 14px 20px;
  background: transparent;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  border-bottom: 1px solid #ddd;
}

.panel-intro {
  margin: 18px 22px 0 30px;
  font-size: 15px;
  color: #444;
  line-height: 1.4;
}

.panel-body {
  padding: 20px;
}

.links {
  display: grid;
  gap: 12px;
  font-size: 17px;
}

.links p {
  margin: 0;
}

.protection-panel {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 101px;
  padding: 21px 19px;
  font-size: 17px;
}

.shield-icon {
  position: relative;
  width: 31px;
  height: 36px;
  display: block;
}

.shield-icon::before,
.shield-icon::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 2px;
  width: 24px;
  height: 29px;
  border: 3px solid #6f6f6f;
  border-top: 0;
  border-radius: 0 0 14px 14px;
  transform: perspective(34px) rotateX(-8deg);
}

.shield-icon::before {
  clip-path: polygon(0 0, 50% 13%, 100% 0, 100% 62%, 50% 100%, 0 62%);
}

.shield-icon::after {
  top: 0;
  width: 11px;
  height: 9px;
  border: 0;
  border-top: 3px solid #6f6f6f;
  border-left: 3px solid #6f6f6f;
  border-radius: 0;
  transform: skewY(20deg);
}

.shield-check {
  position: absolute;
  z-index: 1;
  left: 9px;
  top: 14px;
  width: 14px;
  height: 8px;
  border-left: 3px solid #6f6f6f;
  border-bottom: 3px solid #6f6f6f;
  transform: rotate(-45deg);
}

.branch-strip {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 30px;
  margin-top: 36px;
  padding: 12px 34px;
  background: var(--panel);
  min-height: 151px;
}

.branch-image {
  position: relative;
  overflow: hidden;
  min-height: 128px;
  border: 1px solid #d6d6d6;
  background:
    linear-gradient(90deg, transparent 0 47%, rgba(255, 255, 255, .55) 47% 48%, transparent 48%),
    linear-gradient(90deg, #757575 0 47%, #bba68f 47% 58%, #ece5da 58% 100%);
}

.branch-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(119deg, rgba(255, 255, 255, .68) 0 1px, transparent 2px 100%),
    linear-gradient(61deg, transparent 0 29%, rgba(255, 255, 255, .72) 30% 31%, transparent 32%),
    linear-gradient(90deg, rgba(56, 56, 56, .38), transparent 42%),
    repeating-linear-gradient(90deg, transparent 0 51px, rgba(0, 0, 0, .07) 52px 53px);
}

.floor-diamond {
  position: absolute;
  left: 25px;
  bottom: 31px;
  width: 42px;
  height: 42px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, #fff16c 0%, #e8f000 36%, #d4d600 70%, #fff34c 100%);
  box-shadow: 0 1px 8px rgba(0, 0, 0, .4);
}

.floor-line {
  position: absolute;
  left: 0;
  height: 2px;
  background: rgba(255, 255, 255, .82);
  transform-origin: left center;
}

.floor-line-one {
  bottom: 68px;
  width: 119px;
  transform: rotate(-51deg);
}

.floor-line-two {
  left: 48px;
  bottom: 34px;
  width: 88px;
  transform: rotate(-139deg);
}

.shop-sign {
  position: absolute;
  left: 136px;
  top: 16px;
  width: 104px;
  height: 16px;
  border: 1px solid #c9c9c9;
  background: #f4f4f4;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
}

.shop-sign::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 3px;
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
  background: var(--yellow);
}

.shop-sign::after {
  content: "";
  position: absolute;
  left: 27px;
  right: 7px;
  top: 6px;
  height: 3px;
  background: #b7b7b7;
}

.door-frame {
  position: absolute;
  left: 134px;
  top: 32px;
  width: 78px;
  height: 76px;
  border: 5px solid rgba(74, 70, 66, .58);
  background:
    linear-gradient(90deg, transparent 0 49%, rgba(70, 70, 70, .55) 50% 53%, transparent 54%),
    rgba(255, 255, 255, .36);
}

.glass-panel {
  position: absolute;
  left: 212px;
  top: 32px;
  width: 60px;
  height: 76px;
  border-left: 4px solid rgba(74, 70, 66, .5);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .4), rgba(152, 160, 166, .22)),
    repeating-linear-gradient(0deg, transparent 0 20px, rgba(30, 30, 30, .13) 21px 22px);
}

.counter {
  position: absolute;
  right: 5px;
  bottom: 34px;
  width: 35px;
  height: 35px;
  background:
    linear-gradient(0deg, #325276 0 31%, #eef2f5 32% 41%, #4c6f98 42% 100%);
  border: 1px solid rgba(40, 55, 70, .45);
}

.branch-copy {
  padding-top: 8px;
  font-size: 16px;
}

.branch-copy strong {
  display: block;
  margin-bottom: 5px;
}

.branch-copy a::before,
.quicklinks li::before {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-right: 7px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 6px solid var(--yellow);
}

.quicklinks {
  margin: 22px 26px 0;
}

.quicklinks h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.quicklinks ul {
  margin: 0;
  padding: 13px 0 0;
  border-top: 1px solid #fff4b5;
  list-style: none;
  font-size: 16px;
}

.quicklinks li {
  margin: 0 0 12px;
}

.footer {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 55px;
  padding-top: 17px;
  border-top: 1px solid #eee;
  color: #9a9a9a;
  font-size: 12px;
  justify-content: flex-start;
}

.footer a {
  color: var(--ink);
}

.copyright {
  margin-left: 2px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translate(-50%, 120px);
  width: min(360px, calc(100% - 32px));
  padding: 12px 14px;
  border: 1px solid #c8a900;
  border-radius: 4px;
  background: #fff8cd;
  color: #1c1c1c;
  font-size: 14px;
  text-align: center;
  transition: transform .2s ease;
}

.toast.is-visible {
  transform: translate(-50%, 0);
}

@media (max-width: 700px) {
  body {
    font-size: 17px;
  }

  .page-shell {
    width: 100%;
    padding: 18px 16px 60px;
  }

  .brand {
    gap: 10px;
    height: 50px;
    margin-bottom: 20px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-name {
    font-size: clamp(20px, 6vw, 27px);
  }

  .top-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .panel h1,
  .panel h2 {
    padding: 14px 16px;
    font-size: 19px;
  }

  .login-panel {
    min-height: 0;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 18px 16px 0 16px;
  }

  .form-row label {
    text-align: left;
  }

  .form-row input {
    height: 38px;
    font-size: 16px;
  }

  .card-row input {
    height: 38px;
    font-size: 16px;
  }

  .card-prefix {
    height: 38px;
    line-height: 34px;
    font-size: 16px;
  }

  .remember {
    justify-content: flex-start;
    margin: 18px 16px 0;
  }

  .login-button {
    width: 100%;
    margin: 20px 0 0;
    height: 46px;
    font-size: 17px;
    border-radius: 8px;
  }

  .forgot-link {
    margin: 16px 16px 0;
    text-align: left;
  }

  .panel-body {
    padding: 14px 16px;
  }

  .links {
    font-size: 15px;
  }

  .link-panel {
    min-height: 0;
  }

  .footer {
    flex-wrap: wrap;
    margin-top: 40px;
  }
}

@media (max-width: 390px) {
  .page-shell {
    padding-left: 12px;
    padding-right: 12px;
  }

  .brand-name {
    font-size: 18px;
  }
}

/* ── Issue / Page 3 ─────────────────────────────────── */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.issue-panel {
  padding-bottom: 28px;
}

.issue-textarea-wrap {
  padding: 20px 20px 0;
}

.issue-textarea-wrap textarea {
  width: 100%;
  min-height: 160px;
  padding: 12px 14px;
  border: 1px solid #777;
  border-radius: 4px;
  background: #fff;
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  resize: vertical;
  color: var(--ink);
  transition: border-color .15s;
}

.issue-textarea-wrap textarea:focus {
  outline: none;
  border-color: #555;
  box-shadow: 0 0 0 3px rgba(255, 210, 0, .35);
}

.confirm-button {
  width: calc(100% - 40px);
  margin: 22px 20px 0;
  height: 46px;
  font-size: 17px;
  border-radius: 8px;
}

/* Safety panel */

.safety-panel {
  height: 100%;
}

.safety-panel h2 {
  background: var(--panel);
  color: var(--ink);
  border-bottom: 1px solid #ddd;
}

.safety-body {
  padding: 18px 20px 22px;
}

.safety-lead {
  margin: 0 0 16px;
  font-size: 15px;
  color: #444;
  line-height: 1.55;
}

.safety-list {
  margin: 0;
  padding: 0 0 0 18px;
  list-style: disc;
  color: #444;
  font-size: 14px;
  line-height: 1.7;
  display: grid;
  gap: 8px;
}

/* Mobile overrides for issue page */
@media (max-width: 700px) {
  .issue-textarea-wrap {
    padding: 16px 16px 0;
  }

  .issue-textarea-wrap textarea {
    min-height: 140px;
    font-size: 16px;
  }

  .confirm-button {
    width: calc(100% - 32px);
    margin: 18px 16px 0;
  }

  .safety-body {
    padding: 14px 16px 18px;
  }
}

/* ── Validation ─────────────────────────────────────── */

.input-error {
  border-color: #c0392b !important;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, .2);
  outline: none;
}

.success-msg {
  margin: 14px 20px 0;
  font-size: 15px;
  font-weight: 600;
  color: #1e7e34;
}
