/* ─────────────────────────────────────────────────────
   One-time "new sign-in page" notice for existing users
   Layered over the GCIP sign-in page. Uses the same
   brand variables as styles.css (:root).
───────────────────────────────────────────────────── */

.notice-overlay {
  position: fixed;
  inset: 0;
  /* Below the "Signing you in…" overlay (200), above the forgot modal (100). */
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(16, 37, 71, 0.5);
  opacity: 0;
  transition: opacity 0.2s ease-out;
}

.notice-overlay[hidden] {
  display: none;
}

.notice-overlay.open {
  opacity: 1;
}

.notice-card {
  width: 100%;
  max-width: 430px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 70px rgba(16, 37, 71, 0.35);
  overflow: hidden;
  transform: translateY(12px) scale(0.975);
  opacity: 0;
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease-out;
}

.notice-overlay.open .notice-card {
  transform: none;
  opacity: 1;
}

/* ── Animated stage (the "video") ───────────────────── */

.notice-stage {
  position: relative;
  height: 232px;
  background-color: var(--navy);
  overflow: hidden;
}

/* Brand arrow-burst graphic, faint, echoing the left panel */
.notice-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('assets/lancea-core-graphic.png');
  background-size: auto 170%;
  background-position: 30% 40%;
  background-repeat: no-repeat;
  opacity: 0.3;
}

.notice-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(90% 80% at 70% 10%, rgba(47, 187, 224, 0.16), transparent 65%);
}

/* Miniature replica of the sign-in card */
.mini-card {
  position: absolute;
  left: 50%;
  top: 26px;
  transform: translateX(-50%);
  width: 252px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  padding: 14px 16px 16px;
  z-index: 1;
}

.mini-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 9px;
}

.mini-google {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 27px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text-dark);
  animation: mini-google-press 8s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.mini-google svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

/* Click ripple ring around the Google button */
.mini-ring {
  position: absolute;
  inset: -2px;
  border-radius: 8px;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 0 0 0 rgba(47, 187, 224, 0.55);
  animation: mini-ring 8s ease-out infinite;
}

.mini-divider {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 9px 0;
  font-size: 6.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-light);
  white-space: nowrap;
}

.mini-divider::before,
.mini-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Skeleton email/password form: deliberately dimmed */
.mini-form {
  opacity: 0.42;
}

.mini-label {
  width: 44px;
  height: 5px;
  border-radius: 3px;
  background: #cbd5e1;
  margin-bottom: 4px;
}

.mini-input {
  height: 20px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}

.mini-submit {
  height: 22px;
  border-radius: var(--radius-sm);
  margin-top: 2px;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--mid-blue) 50%, var(--navy) 100%);
}

/* Success chip shown after the simulated click */
.mini-success {
  position: absolute;
  left: 50%;
  top: 118px;
  transform: translate(-50%, 6px) scale(0.96);
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
  opacity: 0;
  z-index: 2;
  animation: mini-success 8s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.mini-success .check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--success-fg);
  color: var(--white);
  flex-shrink: 0;
}

.mini-success .check svg {
  width: 9px;
  height: 9px;
}

/* Animated cursor */
.mini-cursor {
  position: absolute;
  left: 0;
  top: 0;
  width: 19px;
  height: 19px;
  z-index: 3;
  opacity: 0;
  transform: translate(300px, 198px);
  animation: mini-cursor 8s cubic-bezier(0.22, 1, 0.36, 1) infinite;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

/* ── Stage timeline (8s loop) ──────────────────────────
   0–8%    dwell
   8–26%   cursor glides to the Google button
   26–33%  hover, press
   33–45%  click ripple
   40–80%  success chip
   86–100% reset dwell
─────────────────────────────────────────────────────── */

@keyframes mini-cursor {
  0%, 8%       { opacity: 0; transform: translate(300px, 198px); }
  12%          { opacity: 1; }
  26%, 30%     { opacity: 1; transform: translate(206px, 74px) scale(1); }
  31.5%        { transform: translate(206px, 74px) scale(0.86); }
  33%, 44%     { opacity: 1; transform: translate(206px, 74px) scale(1); }
  52%, 100%    { opacity: 0; transform: translate(206px, 74px) scale(1); }
}

@keyframes mini-google-press {
  0%, 24%      { background: #ffffff; transform: scale(1); }
  27%, 55%     { background: #f1f5f9; }
  30%          { transform: scale(1); }
  31.5%        { transform: scale(0.965); }
  33%          { transform: scale(1); }
  62%, 100%    { background: #ffffff; transform: scale(1); }
}

@keyframes mini-ring {
  0%, 30.5%    { opacity: 0; box-shadow: 0 0 0 0 rgba(47, 187, 224, 0.55); }
  32%          { opacity: 1; }
  46%, 100%    { opacity: 0; box-shadow: 0 0 0 13px rgba(47, 187, 224, 0); }
}

@keyframes mini-success {
  0%, 38%      { opacity: 0; transform: translate(-50%, 6px) scale(0.96); }
  44%, 78%     { opacity: 1; transform: translate(-50%, 0) scale(1); }
  86%, 100%    { opacity: 0; transform: translate(-50%, 2px) scale(0.98); }
}

/* ── Text + acknowledge ─────────────────────────────── */

.notice-body {
  padding: 1.375rem 1.625rem 1.5rem;
}

.notice-body h3 {
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  text-wrap: balance;
}

.notice-body p {
  font-size: 0.9075rem;
  line-height: 1.55;
  color: var(--text-mid);
}

.notice-note {
  margin-top: 0.75rem;
  padding: 0.5625rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #f8fafc;
  font-size: 0.8455rem !important;
}

.btn-notice-ack {
  width: 100%;
  margin-top: 1.125rem;
  padding: 0.6875rem 1rem;
  border: none;
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--cyan) 0%, var(--mid-blue) 50%, var(--navy) 100%);
  color: var(--white);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s, box-shadow 0.15s;
}

.btn-notice-ack:hover {
  opacity: 0.9;
  box-shadow: 0 4px 16px rgba(42, 84, 165, 0.38);
}

.btn-notice-ack:focus-visible {
  outline: 2px solid var(--mid-blue);
  outline-offset: 3px;
}

.notice-once {
  margin-top: 0.625rem;
  font-size: 0.78rem !important;
  color: var(--text-light) !important;
  text-align: center;
}

/* ── Reduced motion: static highlight instead ───────── */

@media (prefers-reduced-motion: reduce) {
  .notice-overlay,
  .notice-card {
    transition: none;
  }

  .mini-cursor,
  .mini-success {
    display: none;
  }

  .mini-google,
  .mini-ring {
    animation: none;
  }

  .mini-ring {
    opacity: 1;
    box-shadow: 0 0 0 3px rgba(47, 187, 224, 0.45);
  }
}

@media (max-width: 480px) {
  .notice-stage {
    height: 208px;
  }

  .mini-card {
    top: 18px;
  }
}
