:root {
  --fairfield-red: #c8102e;
  --fairfield-dark-red: #aa0c27;
  --ink: #34373c;
  --muted: #70757d;
  --duo-blue: #1a9fe0;
  --page-gray: #c9cacc;
  --card: #ffffff;
  --border: #c5c7ca;
  --blue: #1595d3;
}

* {
  box-sizing: border-box;
}

html, body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #d9d9d9;
}

.training-banner {
  min-height: 38px;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  color: #fff;
  background: #22272d;
  font-size: 12px;
  letter-spacing: .02em;
}

.training-banner strong {
  color: #ffcccf;
  letter-spacing: .08em;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f04b62;
  box-shadow: 0 0 0 5px rgba(240, 75, 98, .14);
}

.topbar {
  height: 112px;
  background: #fff;
  text-align: center;
  padding-top: 20px;
  border-bottom: 1px solid #e4e4e4;
}

.top-title {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 9px;
  font-size: 23px;
  color: #6b6d70;
}

.my-fairfield {
  color: var(--fairfield-red);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 25px;
}

.topbar p {
  margin: 5px 0 0;
  color: #76797d;
  font-size: 13px;
}

.page {
  min-height: calc(100vh - 185px);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 20px 24px 25px;
  overflow: hidden;
  background: #d9d9d9;
}

body.password-step .page {
  padding-top: 20px;
}

body.password-step .login-card {
  padding-top: 20px;
  padding-bottom: 16px;
}

body.password-step .brand {
  margin-top: 0;
  margin-bottom: 10px;
}

body.password-step .divider-icon {
  height: 96px;
  justify-content: center;
  margin: 10px -36px 0;
}

body.password-step .divider-icon .line {
  display: none;
}

body.password-step .lock-circle {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  width: 92px;
  height: 92px;
}

body.password-step .lock-circle:after {
  left: 10px;
  right: 10px;
  top: 10px;
  bottom: 10px;
}

body.password-step .lock-circle .lock-img {
  width: 58px;
  height: 58px;
  transform: none;
}

body.password-step #step2Title {
  margin: 8px 0 14px;
}

body.password-step .account {
  display: none;
}

body.password-step #loginBtn {
  margin-top: 30px;
}

body.password-step .links {
  margin-top: 16px;
}

body.password-step .training-label {
  margin-top: 16px;
}

.watermark {
  position: absolute;
  right: -80px;
  top: 70px;
  width: 450px;
  height: 550px;
  opacity: .06;
  transform: rotate(8deg);
  pointer-events: none;
}

.watermark-shield {
  width: 330px;
  height: 400px;
  margin: auto;
  border: 22px solid #52565b;
  border-radius: 48% 48% 55% 55%;
  display: grid;
  place-items: center;
  font-family: Georgia, serif;
  font-size: 190px;
  font-weight: bold;
}

.login-card {
  position: relative;
  z-index: 2;
  width: 420px;
  min-height: 0;
  padding: 30px 36px 24px;
  background: var(--card);
  border-radius: 2px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
  animation: cardIn .45s ease-out both;
}

.training-badge{
  background: linear-gradient(90deg,#ffecec,#fff0f0);
  border: 1px solid #f2b3b8;
  color: #b30b1d;
  font-weight:700;
.lock-circle { background-image: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.6), rgba(255,255,255,0.2) 40%); border-radius:50%; box-shadow: 0 2px 0 rgba(0,0,0,0.03) inset; }
.lock-circle:after { content:''; position:absolute; left:10px; right:10px; top:10px; bottom:10px; border-radius:50%; background:#eaf6ff; box-shadow: inset 0 0 0 6px #fff }
  text-align:center;
  padding:6px 8px;
  border-radius:3px;
  margin: -6px auto 10px;
  width: calc(100% - 40px);
}

.card-watermark{position:absolute;left:0;right:0;top:40px;display:block;text-align:center;color:rgba(0,0,0,0.04);font-size:48px;font-weight:700;transform:rotate(-2deg);pointer-events:none}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.brand {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  color: #292929;
  margin-bottom: 18px;
  margin-top: 6px;
}

.crest-img{height:30px;width:auto;display:block;margin:0}
.brand-text{font-family:Georgia, 'Times New Roman', serif;font-size:16px;color:#222;margin-left:0}

.brand{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:4px}

.crest {
  width: 23px;
  height: 27px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--fairfield-red);
  clip-path: polygon(8% 0, 92% 0, 92% 68%, 50% 100%, 8% 68%);
  font-family: Georgia, serif;
  font-weight: bold;
}

.divider-icon {
  display: flex;
  align-items: center;
  margin: 6px -36px 6px;
  position: relative;
}

.line {
  flex: 1;
  height: 1px;
  background: #dedede;
}

/* Lock circle (centered above the divider) */
.lock-circle {
  position: absolute;
  left: 50%;
  top: 34px;
  transform: translateX(-50%);
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
  background: transparent;
  border-radius: 50%;
  border: 3px solid #d9d9d9;
}

.lock-circle:after {
  content: '';
  position: absolute;
  left: 20px;
  right: 20px;
  top: 20px;
  bottom: 20px;
  border-radius: 50%;
  background: #e9f5ff;
  box-shadow: inset 0 0 0 4px #ffffff;
}

.lock-circle .lock-img {
  width: 48px;
  height: 48px;
  z-index: 45;
  position: relative;
  object-fit: contain;
  transform: translateY(-8px);
}

.lock-stars {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--duo-blue);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 20px;
  letter-spacing: 8px;
  z-index: 42;
}

.login-card h1 {
  margin: 28px 0 14px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: #6b6d70;
}

.account {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 6px 0 18px;
  font-size: 13px;
  color: #777b80;
}
  .lock-stars-svg text { font-family: Georgia, 'Times New Roman', serif; fill: var(--duo-blue); font-size: 16px; letter-spacing: 6px }
.password-wrap {
  position: relative;
}

.field-error {
  margin-top: 8px;
  color: var(--fairfield-red);
  font-size: 13px;
}
.field-error .dot {
  display:inline-block;width:16px;height:16px;border-radius:50%;background:var(--fairfield-red);color:#fff;text-align:center;line-height:16px;margin-right:8px;font-size:11px;font-weight:700;vertical-align:middle
}

.help-link{color:#6e7074;font-size:12px;text-decoration:underline}

/* Username step layout: match screenshot spacing */

.username-row{display:block;margin-top:10px}
.username-controls{display:flex;align-items:center;margin-top:10px}
.keep-inline{display:inline-flex;align-items:center;gap:8px;color:#6e7074;font-weight:700}
.username-controls input[type="checkbox"]{width:16px;height:16px;border:1px solid #cfcfcf}

.links{margin-top:14px}
.links a{display:block;margin-bottom:8px}

input {
  width: 100%;
  height: 40px;
  padding: 10px 44px 10px 12px;
  border: 1px solid #cfcfcf;
  border-radius: 2px;
  outline: none;
  font-size: 14px;
  color: #34373c;
  background: #fff;
}

input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(21, 149, 211, .14);
}

.eye {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  height: 28px;
  width: 34px;
  border: 0;
  background: transparent;
  color: #8b8e92;
  cursor: pointer;

}

.eye:hover {
  color: #4d5054;
}

.verify {
  width: 100%;
  height: 48px;
  margin-top: 26px;
  border: 0;
  border-radius: 4px;
  color: #fff;
  background: var(--fairfield-red);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .12s, background .15s, box-shadow .15s;
}

.verify:hover {
  background: var(--fairfield-dark-red);
  box-shadow: 0 4px 10px rgba(200, 16, 46, .2);
}

.verify:active {
  transform: translateY(1px);
}

.arrow {
  margin-left: 7px;
  opacity: .8;
}

.demo-note {
  margin: 12px 0 18px;
  text-align: left;
  color: #80848a;
  font-size: 12px;
  display:flex;
  gap:8px;
  align-items:flex-start;
}

.demo-note span{font-size:14px}

.links {
  margin-top:22px;
}

.links a {
  color: #6e7074;
  font-size: 13px;
  text-decoration: underline;
  display:block;
  margin-bottom:10px;
}

.login-card .line { background:#e6e6e6 }
.login-card .divider-icon { margin-top: 10px }
.login-card .brand { margin-top: 8px }

.account .user-icon svg { opacity: 0.85 }
.account #displayUser { color: #6b6d70; font-size: 13px }

.divider-icon .line { z-index: 1; height: 1px }
.divider-icon { overflow: visible }
.lock-icon svg rect { fill:#eaf6ff !important; stroke: var(--duo-blue) !important; }
.lock-icon svg path { stroke: var(--duo-blue) !important }
.lock-icon svg { display:block }

.links a:hover {
  color: var(--fairfield-red);
}

.training-label {
  margin-top: 24px;
  padding-top: 13px;
  border-top: 1px solid #eeeeee;
  color: #a0a2a5;
  text-align: center;
  font-size: 8px;
  letter-spacing: .11em;
}

.footer {
  position: static;
  min-height: 35px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 68px;
  color: #666a6e;
  background: #fff;
  font-size: 10px;
  border-top: 1px solid #e6e6e6;
}




.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 600px) {
  .training-banner {
    font-size: 10px;
    text-align: center;
  }

  .topbar {
    height: 100px;
  }

  .top-title {
    font-size: 19px;
  }

  .my-fairfield {
    font-size: 21px;
  }

  .page {
    padding: 20px 15px 35px;
  }

  .login-card {
    padding-left: 28px;
    padding-right: 28px;
  }

  .divider-icon {
    margin-left: -28px;
    margin-right: -28px;
  }

  .watermark {
    display: none;
  }

  .footer {
    padding: 0 15px;
  }
}
