:root {
  --blue: #1c68bf;
  --blue-dark: #16538f;
  --blue-hover: #1a5fae;
  --kroger-blue: #084999;
  --ink: #1c1e20;
  --ink-soft: #4a4d51;
  --muted: #6b7075;
  --line: #d9dde2;
  --line-soft: #eceef1;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --danger: #c0392b;
  --card-shadow: 0 3px 1px -2px rgba(0,0,0,.2), 0 1px 1px 1px rgba(0,0,0,.14), 0 1px 5px 1px rgba(0,0,0,.12);
  --radius: 4px;
  --font: "Thrive", Helvetica, Arial, sans-serif;
  --nav-h: 64px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--blue);
  color: #fff;
  padding: 8px 16px;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ===== Header ===== */
.global-nav {
  background: #fff;
  border-bottom: 1px solid var(--line-soft);
  position: sticky;
  top: 0;
  z-index: 40;
}
.global-nav__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: var(--nav-h);
}
.brand img { height: 40px; width: auto; }
.user-menu { margin-left: auto; }
.va-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  transition: background .15s, border-color .15s;
}
.va-btn:hover { background: #eef1f5; border-color: #c3c9d1; }
.va-btn__icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blue);
  position: relative;
  flex: 0 0 auto;
}
.va-btn__icon::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 2px solid #fff;
  opacity: .9;
}
.user-menu:empty + .va-btn { margin-left: auto; }

.va-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 0;
  box-shadow: var(--card-shadow);
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 20px;
}
.va-panel__title { font-weight: 600; font-size: 18px; margin: 0 0 4px; color: var(--ink); }
.va-panel__body { margin: 0 0 14px; color: var(--ink-soft); font-size: 14px; }
.va-panel__ask { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 6px; }
.va-panel__input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
}
.va-panel__input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(28,104,191,.15); }
.va-panel__send {
  margin-top: 12px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
}
.va-panel__send:hover { background: var(--blue-hover); }

/* ===== Main / content ===== */
.content {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 40px 20px;
  overflow: hidden;
}
.content__hero {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.content__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}
.content__hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.82) 34%, rgba(255,255,255,.15) 62%, rgba(255,255,255,0) 100%);
}

/* ===== Login card ===== */
.login-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 28px 30px 30px;
}
.alert {
  border-radius: var(--radius);
  padding: 10px 14px;
  margin: 0 0 18px;
  font-size: 14px;
}
.alert--info {
  background: #eaf2fb;
  border: 1px solid #c6ddf3;
  color: #14467e;
}
.alert p { margin: 0; }
.login-card__title {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 20px;
  color: var(--ink);
  letter-spacing: -.2px;
}

.login-form__step {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--ink);
}
.login-form__required {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 18px;
}

.field { margin-bottom: 14px; }
.field__label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}
.req { color: var(--danger); }
.field__input {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid #b9bfc7;
  border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s;
}
.field__input::placeholder { color: #9aa0a6; }
.field__input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(28,104,191,.15);
}
.field__input[aria-invalid="true"] { border-color: var(--danger); }
.field__error {
  display: block;
  color: var(--danger);
  font-size: 12.5px;
  margin-top: 6px;
}

.link--helper {
  display: inline-block;
  font-size: 13.5px;
  color: var(--blue);
  margin: 4px 0 18px;
}

.btn {
  border: none;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 26px;
  transition: background .15s, opacity .15s;
}
.btn--primary {
  background: var(--blue);
  color: #fff;
  width: 100%;
  margin-top: 4px;
}
.btn--primary:hover:not(:disabled) { background: var(--blue-hover); }
.btn--primary:disabled {
  background: #a9c3e2;
  cursor: not-allowed;
}
.btn--ghost {
  background: #fff;
  color: var(--blue);
  border: 1px solid var(--blue);
  width: auto;
}
.btn--ghost:hover { background: #f0f6fd; }
.link--plain {
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
  color: inherit;
}

/* ===== Footer ===== */
.footer {
  position: relative;
  z-index: 5;
  background: #fff;
  border-top: 1px solid var(--line-soft);
  padding: 28px 20px 22px;
  margin-top: auto;
}
.footer__grid {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 28px;
  flex-wrap: wrap;
}
.footer__col--links { margin-left: auto; }
.footer__col--brand { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 13px;
}
.footer__links a { color: var(--ink-soft); }
.footer__links a:hover { color: var(--blue); }
.footer__alight img { height: 34px; width: auto; }
.footer__stores { display: flex; gap: 10px; }
.footer__stores img { height: 38px; width: auto; }
.footer__divider {
  border: none;
  border-top: 1px solid var(--line-soft);
  margin: 22px auto 14px;
  max-width: 1200px;
}
.footer__legal {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 12.5px;
  color: var(--muted);
}
.footer__legal a, .footer__legal button { color: var(--muted); }
.footer__legal a:hover, .footer__legal button:hover { color: var(--blue); }
.footer__copyright {
  max-width: 1200px;
  margin: 12px auto 0;
  font-size: 12.5px;
  color: var(--muted);
}

/* ===== Cookie banner ===== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgba(0,0,0,.12);
  padding: 18px 20px 20px;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p {
  max-width: 1000px;
  margin: 0 auto 14px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 1000px;
  margin: 0 auto;
  justify-content: center;
}
.cookie-banner .btn--primary { width: auto; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .content { justify-content: center; padding: 28px 16px 40px; }
  .content__hero { display: none; }
  .login-card { max-width: 480px; }
  .footer__col--brand { align-items: flex-start; }
  .footer__grid { flex-direction: column; align-items: flex-start; gap: 18px; }
  .footer__col--links { margin-left: 0; }
}
@media (max-width: 480px) {
  .global-nav__inner { padding: 0 14px; }
  .brand img { height: 32px; }
  .va-btn__label { display: none; }
  .login-card { padding: 22px 18px 24px; }
  .cookie-banner__actions { flex-direction: column; }
  .cookie-banner .btn { width: 100%; }
}

/* ============================================================
   Verify It's You  (identity verification form)
   ============================================================ */

.verify-card {
  width: 560px;
  max-width: calc(100% - 48px);
}

.verify-card__sub {
  margin: -6px 0 22px;
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
}

.verify-form__hint {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 13.5px;
}

.verify-form .field { margin-bottom: 20px; }

/* --- Birth Date: three selects in a row --- */
.date-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 12px;
}
.date-row .field__select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%235b5546' stroke-width='1.6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 30px;
  cursor: pointer;
}
.date-row .field__select:required:invalid { color: var(--muted); }

/* --- Phone: "+" + country code + number --- */
.phone-row {
  display: flex;
  align-items: stretch;
}
.phone-row__cc {
  display: flex;
  align-items: center;
  width: 26px;
  flex: 0 0 auto;
  color: var(--ink);
  font-weight: 600;
  font-size: 16px;
}
.phone-row__cc-input {
  width: 62px;
  flex: 0 0 auto;
  text-align: center;
  border-right: 0;
  border-radius: var(--radius) 0 0 var(--radius);
}
.phone-row .field__input:last-child {
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* --- Verify / Cancel button row --- */
.verify-form__actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
}
.verify-form__actions .btn--primary { flex: 1; }
.verify-form__actions .btn--ghost { flex: 1; }

/* --- Success alert --- */
.alert {
  padding: 16px 18px;
  border-radius: var(--radius);
  font-size: 14px;
}
.alert p { margin: 0; }
.alert--success {
  background: #e8f3ec;
  border: 1px solid #bfe0cc;
  color: #14532d;
}

/* ============================================================
   Password step  (between User ID and Verify It's You)
   ============================================================ */

.pw-form__idrow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 18px;
}
.pw-form__masked {
  font-size: 18px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: .5px;
}
.pw-form__change {
  font-size: 14px;
  color: var(--blue);
  text-decoration: none;
  white-space: nowrap;
}
.pw-form__change:hover { text-decoration: underline; }

.login-form__step--sub {
  margin: 2px 0 6px;
}

.pw-field { position: relative; }
.pw-field__input { padding-right: 44px; }
.pw-field__toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: var(--radius);
  color: #6b7075;
  padding: 0;
  cursor: pointer;
}
.pw-field__toggle:hover { background: #f0f2f5; color: var(--ink); }
.pw-field__toggle:focus { outline: none; box-shadow: 0 0 0 3px rgba(28,104,191,.18); }
.pw-field__toggle.is-on { color: var(--blue); }
.pw-field__toggle svg { display: block; }
.pw-eye__slash { stroke: #c0392b; }

.btn--action {
  width: 100%;
  margin-top: 12px;
  background: #fff;
  color: var(--blue);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  padding: 12px 22px;
}
.btn--action:hover { background: #f0f6fd; border-color: var(--blue); }
.btn--action--icon { color: var(--blue); }

/* small biometric icon rendered inline for the action button */
.btn--action::before {
  content: "";
  width: 20px;
  height: 20px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 11a2 2 0 012 2c0 1.02-.15 2.55-.44 4.08A2 2 0 0114 17a1 1 0 010 2 6 6 0 004.8-7.2A6.98 6.98 0 0013 5a7 7 0 00-5.3 7.1A21 21 0 018 17a1 1 0 002 0 24 24 0 00.5-4.5A4 4 0 0112 11z'/></svg>") center/contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 11a2 2 0 012 2c0 1.02-.15 2.55-.44 4.08A2 2 0 0114 17a1 1 0 010 2 6 6 0 004.8-7.2A6.98 6.98 0 0013 5a7 7 0 00-5.3 7.1A21 21 0 018 17a1 1 0 002 0 24 24 0 00.5-4.5A4 4 0 0112 11z'/></svg>") center/contain no-repeat;
}

/* ============================================================
   One-Time Code step  (after Verify It's You, before redirect)
   ============================================================ */

.oc-back {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 18px;
}
.oc-back:hover { text-decoration: underline; }

.oc-required-note {
  font-size: 12.5px;
  color: var(--muted);
  margin: -6px 0 20px;
}

.oc-code-input {
  font-size: 18px;
  letter-spacing: 2px;
  text-align: center;
}

.oc-device {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--ink);
  margin: 4px 0 18px;
  cursor: pointer;
}
.oc-device input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--blue);
  cursor: pointer;
  flex: 0 0 auto;
}

.oc-resend { margin: 0 0 22px; }
.oc-resend.is-sent { color: #14532d; text-decoration: none; }

.oc-resend-note {
  font-size: 13px;
  color: #14532d;
  margin: -14px 0 18px;
}

@media (max-width: 420px) {
  .verify-card { max-width: calc(100% - 24px); }
  .date-row { gap: 8px; }
  .verify-form__actions { flex-direction: column; }
  .pw-form__idrow { flex-direction: column; gap: 4px; }
}
