/* ICG 2026 brand tokens from official guidelines */
:root {
  --icg-deepwater-teal: #173948;
  --icg-vivid-blue: #3d4af1;
  --icg-satin-grey: #f0f0f0;
  --icg-pure-white: #ffffff;
  --icg-midnight-black: #000000;
  --icg-border: rgba(0, 0, 0, 0.2);
  --icg-text: #173948;
  --icg-text-muted: rgba(23, 57, 72, 0.75);
}

html {
  position: relative;
  min-height: 100%;
  font-size: 16px;
}

body {
  margin-bottom: 64px;
  font-family: "Pembroke Light", "Segoe UI Semilight", "Segoe UI", Tahoma, sans-serif;
  background-color: var(--icg-deepwater-teal);
  color: var(--icg-satin-grey);
}

a:hover {
  cursor: pointer;
}

main a {
  color: var(--icg-vivid-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

main a:hover {
  color: var(--icg-deepwater-teal);
}

header .icg-navbar {
  background-color: var(--icg-deepwater-teal) !important;
  border-bottom: 1px solid rgba(240, 240, 240, 0.3);
  min-height: 56px;
}

header .icg-navbar .icg-header-brand .icg-navbar-logo-svg {
  display: block;
  width: 85px;
  height: 36px;
  color: var(--icg-pure-white);
}

.icg-navbar-title {
  margin-left: 0.75rem;
  font-family: "Pembroke Regular", "Segoe UI", Tahoma, sans-serif;
  color: var(--icg-pure-white);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
}

.container {
  max-width: 1200px;
}

.verification-page {
  text-align: center;
  padding-top: 2rem;
}

.verification-page h1 {
  font-family: "Pembroke Regular", "Segoe UI", Tahoma, sans-serif;
  color: var(--icg-pure-white);
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.verification-page h3 {
  font-family: "Pembroke Light", "Segoe UI Semilight", "Segoe UI", Tahoma, sans-serif;
  color: var(--icg-satin-grey);
  font-size: 1.25rem;
  font-weight: 400;
}

.verification-form-field {
  max-width: 352px;
}

.form-label {
  font-family: "Pembroke Medium", "Segoe UI Semibold", "Segoe UI", Tahoma, sans-serif;
  color: var(--icg-satin-grey);
  font-weight: 600;
}

.form-control {
  border: 1px solid var(--icg-satin-grey);
  border-radius: 0.5rem;
  color: var(--icg-midnight-black);
  background-color: var(--icg-pure-white);
}

.form-control:focus {
  border-color: var(--icg-vivid-blue);
  box-shadow: 0 0 0 0.2rem rgba(61, 74, 241, 0.2);
}

#message-wrapper {
  margin-top: 1rem;
}

#message {
  font-size: 1rem;
  color: var(--icg-satin-grey);
}

.verification-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.verification-card {
  border: 1px solid var(--icg-border);
  border-radius: 0.75rem;
  padding: 1.25rem;
  background-color: var(--icg-pure-white);
  color: var(--icg-text);
  box-shadow: 0 8px 24px rgba(23, 57, 72, 0.08);
  min-height: 330px;
  text-align: center;
  transition: all 0.2s ease;
}

.verification-card.is-dimmed {
  background-color: var(--icg-satin-grey);
  border-color: var(--icg-midnight-black);
  opacity: 0.6;
}

.verification-card.is-focused {
  border-color: var(--icg-deepwater-teal);
  box-shadow: 0 12px 30px rgba(23, 57, 72, 0.14);
  opacity: 1;
}

.verification-card p,
.verification-card .skipButton {
  text-align: center;
}

.verification-card .skipButton {
  display: inline-block;
  width: 100%;
}

/* Space between primary step buttons and the copy (or QR) below */
.verification-card > .button {
  margin-bottom: 1.25rem;
}

#card-1 img {
  display: block;
  margin: 0 auto;
}

.button {
  font-family: "Pembroke Medium", "Segoe UI Semibold", "Segoe UI", Tahoma, sans-serif;
  width: 100%;
  background: linear-gradient(135deg, var(--icg-deepwater-teal) 0%, var(--icg-vivid-blue) 100%);
  border: none;
  color: var(--icg-pure-white);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.button:hover:not(:disabled) {
  color: var(--icg-pure-white);
  opacity: 0.95;
  transform: translateY(-1px);
}

.button:disabled,
.button[disabled] {
  background: var(--icg-midnight-black);
  color: var(--icg-pure-white);
}

.skipButton {
  color: var(--icg-vivid-blue);
  font-size: 0.95rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.skipButton:hover {
  color: var(--icg-deepwater-teal);
}

.step2-loading {
  min-height: 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#qrcode {
  text-align: center;
}

#qrcode > img {
  margin: 1rem auto 0;
}

.waitingForAuthApp {
  font-family: "Pembroke Medium", "Segoe UI Semibold", "Segoe UI", Tahoma, sans-serif;
  display: inline-block;
  background-color: var(--icg-deepwater-teal);
  color: var(--icg-pure-white);
  border-radius: 0.5rem;
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.appsWrapper {
  margin-top: 0.9rem;
  color: var(--icg-text);
  font-size: 0.95rem;
}

.verification-detail-list {
  margin: 0.75rem 0 0;
  text-align: left;
}

.verification-detail-row {
  margin-bottom: 0.75rem;
}

.verification-detail-label {
  font-family: "Pembroke Medium", "Segoe UI Semibold", "Segoe UI", Tahoma, sans-serif;
  display: block;
  color: var(--icg-text-muted);
  font-weight: 600;
  font-size: 0.82rem;
  margin-bottom: 0.25rem;
}

.monospacedText {
  border: 1px solid var(--icg-border);
  background-color: var(--icg-satin-grey);
  border-radius: 0.4rem;
  padding: 0.5rem 0.65rem;
  color: var(--icg-text);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.icg-footer {
  border-top: 1px solid var(--icg-border) !important;
  background-color: var(--icg-midnight-black) !important;
  color: var(--icg-satin-grey) !important;
  font-size: 0.85rem;
}

@media (max-width: 991px) {
  .verification-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .verification-page {
    text-align: left;
  }

  .verification-page h1 {
    font-size: 1.6rem;
  }

  .verification-flow {
    grid-template-columns: 1fr;
  }
}
