/*******************************************************************************
    Copyright (C) 2026 MP Consulting
    All Rights Reserved
    Unauthorized copying of this file, via any medium, is strictly prohibited.
    Proprietary and confidential.

    Alexa account linking client-side styles.
*******************************************************************************/

:root {
  color-scheme: light;
  --blue: #28699c;
  --blue-dark: #20557e;
  --ink: #222b30;
  --muted: #55626a;
  --line: #d4dce1;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  color: var(--ink);
  background: #f8f9fa;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

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

header,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 7%;
}

header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

header img {
  display: block;
  object-fit: contain;
}

header span {
  font-size: 14px;
  color: var(--muted);
}

main {
  flex: 1;
  padding: 64px 24px 72px;
  border-top: 5px solid #5787b6;
}

main>section {
  max-width: 440px;
  margin: 0 auto;
}

.eyebrow {
  font-size: 12px;
  font-weight: bold;
  color: var(--blue);
  margin: 0 0 18px;
}

h1 {
  font-size: 36px;
  line-height: 1.2;
  margin: 0 0 22px;
  color: var(--blue);
}

h2 {
  font-size: 22px;
  line-height: 1.4;
  margin: 24px 0 12px;
}

p {
  line-height: 1.6;
}

#intro,
.hint {
  color: var(--muted);
}

#status {
  font-size: 14px;
  min-height: 24px;
  overflow-wrap: anywhere;
}

#status[data-error="true"] {
  color: #a22525;
}

label,
.code-fields legend {
  display: block;
  font-weight: bold;
  font-size: 14px;
  margin: 22px 0 10px;
}

.code-fields {
  min-width: 0;
  margin: 22px 0 0;
  padding: 0;
  border: 0;
}

.code-fields legend {
  margin: 0 0 10px;
  padding: 0;
}

.code-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto repeat(2, minmax(0, 1fr)) auto repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 6px;
}

input {
  width: 100%;
  min-width: 0;
  border: 1px solid #8b9ba6;
  border-radius: 4px;
  padding: 14px;
  font: inherit;
  background: #fff;
  color: var(--ink);
}

.code-inputs input {
  height: 56px;
  padding: 10px 0;
  font-size: 24px;
  text-align: center;
  text-transform: uppercase;
}

button {
  width: 100%;
  min-height: 50px;
  margin-top: 18px;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 4px;
  font: inherit;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  background: var(--blue);
  cursor: pointer;
  white-space: normal;
}

button:hover {
  background: var(--blue-dark);
}

button:disabled {
  cursor: wait;
  opacity: .6;
}

.secondary {
  color: var(--blue);
  border-color: var(--line);
  background: #fff;
}

.secondary:hover {
  background: #edf3f7;
}

.text-button {
  background: transparent;
  color: var(--blue);
  font-size: 14px;
  font-weight: normal;
  text-decoration: underline;
  margin-top: 8px;
}

.text-button:hover {
  background: #edf3f7;
}

.hint {
  font-size: 13px;
  margin: 10px 0 0;
}

a {
  color: var(--blue);
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 3px solid #276c9f;
  outline-offset: 4px;
}

footer {
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

@media (max-width: 520px) {

  header,
  footer {
    padding: 18px 24px;
  }

  header {
    gap: 16px;
  }

  header img {
    width: 116px;
    height: 48px;
  }

  header span {
    max-width: 130px;
    text-align: right;
    line-height: 1.5;
  }

  main {
    padding-top: 40px;
  }

  h1 {
    font-size: 30px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
}