/* Weepee blackhole frontend - house style, matching the dashboards and the maintenance page */

:root {
  /* primary ramp from weepee-tool/rs-frontend/app/src/themes/palette.ts */
  --wp-primary:       #ffbb00;
  --wp-primary-dark:  #d99800;
  --wp-primary-light: #ffdc52;

  --wp-text:      #262626;
  --wp-text-soft: #595959;
  --wp-border:    #e6ebf1;

  --wp-warning-bg:   #fff4e5;
  --wp-warning-text: #663c00;
  --wp-error-bg:     #fdeded;
  --wp-error-text:   #5f2120;
  --wp-success-bg:   #edf7ed;
  --wp-success-text: #1e4620;
}

* { box-sizing: border-box; }

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

body {
  font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--wp-text);
  background: url('../media/bg.jpg') center / cover no-repeat fixed;
  -webkit-font-smoothing: antialiased;
}

/* background video - the jpg above stays the fallback */
.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  border: 0;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}

.card {
  width: 100%;
  max-width: 480px;
  padding: 32px 28px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 3px 5px -1px rgba(0,0,0,.2), 0 6px 10px 0 rgba(0,0,0,.14), 0 1px 18px 0 rgba(0,0,0,.12);
}

.card__logo {
  display: block;
  height: 36px;
  width: auto;
  margin: 0 auto 24px;
}

/* status icon, same shape as the fraud frontend */
.status-icon {
  font-size: 48px;
  line-height: 1;
  text-align: center;
  margin: 0 0 16px;
}

.card h1 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}

.text-center { text-align: center; }

.card p {
  margin: 0 0 12px;
  font-size: .95rem;
  line-height: 1.6;
  color: var(--wp-text-soft);
}

.card p strong { color: var(--wp-text); }

/* alerts in the same shape as the MUI Alert */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: .875rem;
  line-height: 1.5;
  margin: 0 0 20px;
}

.alert--warning { background: var(--wp-warning-bg); color: var(--wp-warning-text); }
.alert--error   { background: var(--wp-error-bg);   color: var(--wp-error-text); }
.alert--success { background: var(--wp-success-bg); color: var(--wp-success-text); }

.details {
  border: 1px solid var(--wp-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, .6);
  padding: 16px;
  margin: 0 0 20px;
}

.details dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
.details dt { font-size: .8rem; color: var(--wp-text-soft); text-transform: uppercase; letter-spacing: .04em; }
.details dd { margin: 0; font-size: .9rem; word-break: break-all; }

.g-recaptcha { margin: 0 0 20px; display: flex; justify-content: center; }

.btn {
  display: block;
  width: 100%;
  padding: 12px 16px;
  border: 0;
  border-radius: 8px;
  background: var(--wp-primary);
  color: #262626;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .2s ease, box-shadow .2s ease;
}

.btn:hover  { background: var(--wp-primary-dark); }
.btn:active { background: var(--wp-primary-dark); }
.btn:focus-visible { outline: 3px solid var(--wp-primary-light); outline-offset: 2px; }

.footnote {
  margin: 20px 0 0;
  text-align: center;
  font-size: .8rem;
  color: var(--wp-text-soft);
}

@media (max-width: 480px) {
  .card { padding: 24px 20px; }
  .card h1 { font-size: 1.3rem; }
}

/* respect reduced motion - the jpg background remains */
@media (prefers-reduced-motion: reduce) {
  .bg-video { display: none !important; }
}
