html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background:
    radial-gradient(circle at 12% 18%, rgba(96, 109, 101, 0.24), transparent 44%),
    radial-gradient(circle at 74% 68%, rgba(82, 95, 89, 0.18), transparent 50%),
    radial-gradient(circle at 84% 20%, rgba(74, 86, 80, 0.2), transparent 48%),
    radial-gradient(circle at 52% 82%, rgba(66, 78, 72, 0.16), transparent 52%),
    linear-gradient(140deg, #f1f2ef 0%, #e0e4df 38%, #cdd4cf 70%, #bcc4bf 100%);
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.auth-demo-wrapper {
  min-height: calc(100vh - 220px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.auth-card {
  width: 100%;
  max-width: 860px;
  border: 1px solid rgba(199, 212, 229, 0.85);
  border-radius: 1rem;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(243, 248, 255, 0.93) 56%,
    rgba(234, 242, 252, 0.9) 100%
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  padding: 3rem;
}



.auth-card.shadow-sm {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

.provider-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  margin-top:3rem;
}

.provider-grid form {
  margin: 0;
}

.provider-card {
  width: 100%;
  border: 0;
  border-radius: 0.85rem;
  color: #1f2a37;
  background: linear-gradient(180deg, #e7ebf0 0%, #d9dee6 100%);
  text-align: left;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 240px;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.2), 0 2px 6px rgba(15, 23, 42, 0.14);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.provider-card:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: none;
}

.provider-card:not(:disabled):focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.provider-card:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.provider-card:disabled .provider-image::before {
  animation: none;
  filter: grayscale(1);
}

.provider-name {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0.9rem 1rem;
  font-size: 1.05rem;
  font-weight: 500;
  background: linear-gradient(180deg, #e4e9ef 0%, #d5dbe4 100%);
}

.provider-image {
  flex: 3;
  display: block;
  position: relative;
  overflow: hidden;
}

.provider-image::before {
  content: '';
  position: absolute;
  inset: -10%;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.provider-google {
  background: #fff;
}

.provider-google .provider-image {
  position: relative;
}

.provider-google .provider-image::before {
  background-image:
    radial-gradient(circle at 14% 18%, rgba(255, 255, 255, 0.3), transparent 18%),
    radial-gradient(circle at 82% 22%, rgba(255, 255, 255, 0.22), transparent 16%),
    radial-gradient(circle at 24% 78%, rgba(255, 255, 255, 0.18), transparent 20%),
    linear-gradient(145deg,
      rgba(255, 255, 255, 0.3) 0%,
      rgba(255, 255, 255, 0.14) 18%,
      rgba(255, 255, 255, 0.05) 34%,
      rgba(255, 255, 255, 0) 46%),
    linear-gradient(325deg,
      rgba(255, 255, 255, 0.18) 0%,
      rgba(255, 255, 255, 0.07) 16%,
      rgba(255, 255, 255, 0) 30%),
    repeating-linear-gradient(135deg,
      #4285F4 0%,
      #4285F4 14%,
      #EA4335 14%,
      #EA4335 28%,
      #FBBC05 28%,
      #FBBC05 42%,
      #34A853 42%,
      #34A853 56%);
  background-size: auto, auto, auto, 160% 160%, 140% 140%, 220% 220%;
  background-position: 14% 18%, 82% 22%, 24% 78%, 0% 0%, 100% 0%, 0% 0%;
  will-change: background-position;
  animation: google-flow 12s linear infinite;
}

.provider-google .provider-image::after {
  content: '';
  position: absolute;
  inset: -20% auto -20% -60%;
  width: 45%;
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.18) 45%,
    rgba(255, 255, 255, 0.38) 50%,
    rgba(255, 255, 255, 0.18) 55%,
    rgba(255, 255, 255, 0) 100%);
  transform: skewX(-18deg) translateX(0);
  opacity: 0;
  pointer-events: none;
}

.provider-facebook {
  background: #fff;
}

.provider-facebook .provider-image {
}

.provider-facebook .provider-image::before {
  background-image: url('/images/providers/facebook-bg.svg');
  animation: facebook-drift 6.5s linear infinite;
}

.provider-linkedin {
  background: #fff;
}

.provider-linkedin .provider-image {
}

.provider-linkedin .provider-image::before {
  background-image: url('/images/providers/linkedin-bg.svg');
  animation: linkedin-wave 7s ease-in-out infinite;
}

@keyframes google-flow {
  0% {
    background-position: 14% 18%, 82% 22%, 24% 78%, 0% 0%, 100% 0%, 0% 0%;
  }
  100% {
    background-position: 14% 18%, 82% 22%, 24% 78%, 12% 10%, 88% 12%, 100% 100%;
  }
}

@keyframes google-shimmer {
  0% {
    transform: skewX(-18deg) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.18;
  }
  45% {
    opacity: 0.55;
  }
  100% {
    transform: skewX(-18deg) translateX(360%);
    opacity: 0;
  }
}

@keyframes facebook-drift {
  0% {
    transform: translate(-6%, 3%) scale(1.1);
  }
  25% {
    transform: translate(2%, -4%) scale(1.08);
  }
  50% {
    transform: translate(7%, 1%) scale(1.11);
  }
  75% {
    transform: translate(0%, 6%) scale(1.09);
  }
  100% {
    transform: translate(-6%, 3%) scale(1.1);
  }
}

@keyframes linkedin-wave {
  0% {
    transform: translateY(0%) scale(1.06);
  }
  50% {
    transform: translateY(-5%) scale(1.1);
  }
  100% {
    transform: translateY(0%) scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  .provider-image::before {
    animation: none;
  }

  .provider-google .provider-image::after {
    animation: none;
  }
}

.google-only-card {
  max-width: 980px;
}

.reset-demo-status-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border: 1px solid transparent;
  border-radius: 1rem;
}

.reset-demo-status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.reset-demo-status-card .spinner-border {
  width: 1rem;
  height: 1rem;
  border-width: 0.14em;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.reset-demo-status-card.is-pending {
  background: var(--bs-secondary-bg-subtle);
  border-color: var(--bs-secondary-border-subtle);
  color: var(--bs-secondary-text-emphasis);
}

.reset-demo-status-card.is-success {
  background: var(--bs-success-bg-subtle);
  border-color: var(--bs-success-border-subtle);
  color: var(--bs-success-text-emphasis);
}

.reset-demo-status-card.is-success .reset-demo-status-icon {
  background: rgba(25, 135, 84, 0.16);
}

.reset-demo-status-card.is-info {
  background: var(--bs-info-bg-subtle);
  border-color: var(--bs-info-border-subtle);
  color: var(--bs-info-text-emphasis);
}

.reset-demo-status-card.is-info .reset-demo-status-icon {
  background: rgba(13, 202, 240, 0.16);
}

.reset-demo-status-card.is-warning {
  background: var(--bs-warning-bg-subtle);
  border-color: var(--bs-warning-border-subtle);
  color: var(--bs-warning-text-emphasis);
}

.reset-demo-status-card.is-warning .reset-demo-status-icon {
  background: rgba(255, 193, 7, 0.2);
}

.google-only-provider-card.provider-google:not(:disabled):hover .provider-image::after,
.google-only-provider-card.provider-google:not(:disabled):focus-visible .provider-image::after {
  animation: google-shimmer 0.9s ease-out 1;
}

.google-only-steps {
  padding-left: 1.25rem;
  margin-bottom: 0;
}

.google-only-steps li {
  margin-bottom: 0.55rem;
}

.google-only-note {
  border-left: 4px solid #9ab3d9;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 0.35rem;
  padding: 0.75rem 0.9rem;
}

.google-only-sidepanel {
  height: 100%;
  border: 1px solid rgba(173, 190, 216, 0.45);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.58);
  padding: 1rem;
}

.google-only-provider-card {
  min-height: 220px;
  border: 1px solid #c6d0df;
  border-left: 0;
  background: linear-gradient(180deg, #ffffff 0%, #e4eefc 100%);
  cursor: pointer;
}

.google-only-provider-card .provider-name {
  justify-content: center;
  text-align: center;
  flex-direction: column;
  gap: 0.35rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(242, 247, 255, 0.62) 100%);
  border-top: 1px solid rgba(214, 224, 239, 0.9);
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  padding: 1rem 1rem 1.1rem;
}

.provider-name-label {
  display: inline-block;
  margin-bottom:0px;
}

.provider-name-help {
    display: inline-block;
    font-size:14px;
    margin-bottom: 0px;
}

.provider-working-indicator {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.provider-working-indicator .spinner-border {
  width: 1rem;
  height: 1rem;
  border-width: 0.14em;
}

.google-only-provider-card.is-submitting {
  cursor: wait;
}

.google-only-provider-card.is-submitting .provider-name-label {
  display: none;
}

.google-only-provider-card.is-submitting .provider-working-indicator {
  display: inline-flex;
}

.google-only-provider-card:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.24), 0 4px 10px rgba(15, 23, 42, 0.16);
}

.google-only-provider-card:not(:disabled):active {
  transform: translateY(0);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.2), 0 2px 6px rgba(15, 23, 42, 0.14);
}

@media (min-width: 992px) {
  .google-cta-offset {
    margin-top: 4.25rem;
  }
}

.oauth-result-card {
  max-width: 1040px;
}

.result-pill {
  border: 1px solid rgba(185, 201, 222, 0.7);
  border-radius: 0.75rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(238, 245, 255, 0.78) 100%);
  padding: 0.75rem 0.9rem;
}

.result-pill-success {
  border-color: rgba(25, 135, 84, 0.45);
  background: linear-gradient(180deg, rgba(230, 250, 240, 0.95) 0%, rgba(209, 243, 224, 0.9) 100%);
}

.result-pill-missing {
  border-color: rgba(255, 193, 7, 0.55);
  background: linear-gradient(180deg, rgba(255, 248, 225, 0.95) 0%, rgba(255, 239, 179, 0.9) 100%);
}

.result-pill-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #5f6f86;
}

.result-pill-value {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2a37;
}

.section-teach-note {
  margin-bottom: 0.65rem;
  padding: 0.25rem 0;
  border-left: 0;
  background: transparent;
  border-radius: 0;
  color: #44566f;
  font-size: 0.92rem;
  line-height: 1.5;
}

.scope-badge-requested {
  color: #2f4058;
  background: #eef3fb;
  border: 1px solid #c7d4e7;
  font-weight: 600;
}

.scope-badge-returned {
  color: #173b6f;
  background: #dbe9ff;
  border: 1px solid #b9d0fb;
  font-weight: 600;
}

.oauth-result-card .badge.bg-success,
.oauth-result-card .badge.text-bg-success {
  background-color: #198754 !important;
  color: #fff !important;
  border-color: #198754 !important;
}

.oauth-result-card .scope-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(25, 135, 84, 0.45);
  border-radius: 999px;
  padding: 0.22rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
  color: #0f5132;
  background: linear-gradient(180deg, rgba(230, 250, 240, 0.95) 0%, rgba(209, 243, 224, 0.9) 100%);
}

.oauth-result-card .scope-pill-missing {
  color: #664d03;
  border-color: rgba(255, 193, 7, 0.65);
  background: linear-gradient(180deg, rgba(255, 248, 225, 0.98) 0%, rgba(255, 241, 181, 0.92) 100%);
}

.oauth-result-card .scope-pill-less-rounded {
  border-radius: 0.45rem;
}

.oauth-result-card .token-synthetic-icon {
  color: #4ea97a;
}

.oauth-result-card .result-section-panel {
  background: rgb(224, 223, 221, 0.24);
  border: 1px solid rgba(203, 213, 225, 0.5);
  border-radius: 0.6rem;
  padding: 1rem 1rem 0.75rem;
  margin-bottom: 2.3rem !important;
}

/* Moved from Pages/Shared/_Layout.cshtml.css (CSS isolation removed). */
a.navbar-brand {
  white-space: normal;
  text-align: center;
  word-break: break-all;
}

a {
  color: #0077cc;
}

.btn-primary {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

.border-top {
  border-top: 1px solid #e5e5e5;
}

.border-bottom {
  border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
  font-size: 1rem;
  line-height: inherit;
}

.footer {
  position: static;
  width: 100%;
/*  padding: 0.1rem 0 1.1rem;*/
  line-height: .5;
  margin-top:0px;
}



