/* MSG Intranet Redirect
   Clean corporate redirect screen using the MSG purple/charcoal visual direction.
*/

:root {
  --msg-primary: #3C2452;
  --msg-primary-deep: #2B193C;
  --msg-primary-soft: #EEE9F2;
  --msg-text: #17151A;
  --msg-muted: #65606A;
  --msg-border: #E4E0E8;
  --msg-surface: #FFFFFF;
  --msg-background: #F7F5F9;
  --msg-shadow: 0 18px 50px rgba(28, 18, 36, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  font-family:
    "Segoe UI",
    -apple-system,
    BlinkMacSystemFont,
    "Helvetica Neue",
    Arial,
    sans-serif;
  color: var(--msg-text);
  background:
    radial-gradient(circle at top left, rgba(60, 36, 82, 0.10), transparent 35rem),
    linear-gradient(135deg, #FFFFFF 0%, var(--msg-background) 100%);
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 32px 20px;
}

.redirect-card {
  width: min(100%, 560px);
  padding: 44px 42px 36px;
  text-align: center;
  background: var(--msg-surface);
  border: 1px solid var(--msg-border);
  border-radius: 22px;
  box-shadow: var(--msg-shadow);
}

.brand {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.brand-logo {
  display: block;
  width: min(100%, 300px);
  height: auto;
  object-fit: contain;
}

.status-icon {
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.spinner {
  width: 34px;
  height: 34px;
  border: 4px solid var(--msg-primary-soft);
  border-top-color: var(--msg-primary);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
}

h1 {
  margin: 0;
  color: var(--msg-primary-deep);
  font-size: clamp(1.7rem, 4vw, 2.15rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lead {
  max-width: 430px;
  margin: 16px auto 0;
  font-size: 1.02rem;
  line-height: 1.6;
}

.small {
  max-width: 420px;
  margin: 9px auto 0;
  color: var(--msg-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.continue-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 26px;
  padding: 11px 22px;
  color: #FFFFFF;
  background: var(--msg-primary);
  border: 2px solid var(--msg-primary);
  border-radius: 10px;
  font-size: 0.96rem;
  font-weight: 650;
  text-decoration: none;
  transition:
    transform 120ms ease,
    background 120ms ease,
    border-color 120ms ease,
    box-shadow 120ms ease;
}

.continue-button:hover {
  background: var(--msg-primary-deep);
  border-color: var(--msg-primary-deep);
  box-shadow: 0 8px 18px rgba(60, 36, 82, 0.18);
  transform: translateY(-1px);
}

.continue-button:focus-visible {
  outline: 3px solid rgba(60, 36, 82, 0.28);
  outline-offset: 3px;
}

.destination {
  margin: 20px 0 0;
  padding-top: 19px;
  border-top: 1px solid var(--msg-border);
  color: var(--msg-muted);
  font-size: 0.82rem;
}

.destination strong {
  color: var(--msg-text);
  font-weight: 600;
}

footer {
  color: #6E6972;
  font-size: 0.8rem;
  text-align: center;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 560px) {
  .page-shell {
    padding: 20px 14px;
  }

  .redirect-card {
    padding: 34px 22px 28px;
    border-radius: 18px;
  }

  .brand-logo {
    width: min(100%, 250px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation-duration: 2s;
  }

  .continue-button {
    transition: none;
  }
}
