/* "Sign-in cancelled" (/accounts/3rdparty/login/cancelled/), when the student
   backs out of Google's consent screen. 1:1 to the owner's mockup
   03-account-states/6.png (2026-10-01), sized from it at 1581px and kept in
   step with its sibling, the Google error page (account-google-error.css).
   One ink: every word is --nb-ink or the student blue. One layout, two
   themes: only tokens change. */

.glc-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 100px 16px 68px;
  color: var(--nb-ink);
  font-family: var(--nb-sans);
  text-align: center;
}

/* The Google G on a blue-tinted round tile, with a small X badge at its
   lower right, ringed in the page colour so it reads as cut out. */
.glc-tile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 88px;
  height: 88px;
  border: 1px solid color-mix(in srgb, var(--nb-blue) 40%, var(--nb-border));
  border-radius: 50%;
  background: color-mix(in srgb, var(--nb-blue) 8%, var(--nb-paper-raised));
}

.glc-badge {
  position: absolute;
  right: -4px;
  bottom: -2px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 32px;
  height: 32px;
  border: 3px solid var(--nb-paper);
  border-radius: 50%;
  background: color-mix(in srgb, var(--nb-blue) 45%, var(--nb-paper-raised));
  color: var(--nb-ink);
}

.glc-eyebrow {
  margin: 16px 0 0;
  font-size: var(--nb-text-sm);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nb-blue);
}

.glc-title {
  margin: 12px 0 0;
  font-family: var(--nb-sans);
  font-size: 2.125rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--nb-ink);
  text-wrap: balance;
}

.glc-lead {
  margin: 10px 0 0;
  font-size: var(--nb-text-lg);
  line-height: 1.45;
  color: var(--nb-ink);
}
.glc-lead > span {
  display: block;
}
/* "sign-in" never splits at its hyphen when the lead wraps on a phone. */
.glc-nw {
  white-space: nowrap;
}

.glc-note {
  margin: 14px 0 0;
  font-size: var(--nb-text-md);
  line-height: 1.5;
  color: var(--nb-ink);
  text-wrap: balance;
}

.glc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-sizing: border-box;
  width: min(100%, 374px);
  height: 56px;
  margin-top: 27px;
  padding: 0 20px;
  border-radius: var(--nb-r-md);
  background: var(--nb-blue);
  color: var(--nb-on-blue);
  font-size: var(--nb-text-md);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.glc-btn svg {
  flex: none;
  transition: transform 0.15s ease;
}
.glc-btn:hover {
  background: var(--nb-blue-strong);
  color: var(--nb-on-blue);
}
.glc-btn:hover svg {
  transform: translateX(2px);
}
.glc-btn:active {
  transform: translateY(1px);
}
.glc-btn:focus-visible {
  outline: 2px solid var(--nb-blue);
  outline-offset: 3px;
}

/* Back to log in: a quiet blue link with a 44px tap height. */
.glc-back {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  margin-top: 34px;
  padding: 0 8px;
  border-radius: var(--nb-r-md);
  color: var(--nb-blue);
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
}
.glc-back svg {
  flex: none;
  transition: transform 0.15s ease;
}
.glc-back:hover {
  color: var(--nb-blue-strong);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.glc-back:hover svg {
  transform: translateX(-2px);
}
.glc-back:focus-visible {
  outline: 2px solid var(--nb-blue);
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .glc-page {
    padding: 56px 16px 48px;
  }
  .glc-title {
    font-size: var(--nb-text-2xl);
  }
  .glc-lead {
    text-wrap: balance;
  }
  .glc-lead > span {
    display: inline;
  }
  .glc-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .glc-btn,
  .glc-btn svg,
  .glc-back svg {
    transition: none;
  }
}

/* "Opening Google" (socialaccount/login.html) shares this sheet: its button is a
   real submit, and its badge turns while the page hands over to Google. */
.glc-form {
  display: contents;
}
.glc-form p:empty {
  display: none;
}
button.glc-btn {
  border: 0;
  font-family: inherit;
  cursor: pointer;
}
.glc-badge--busy svg {
  animation: glc-turn 0.9s linear infinite;
}
@keyframes glc-turn {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .glc-badge--busy svg { animation: none; }
}
