/* Google One Tap "Signing you in" overlay. All classes start with "ot-" so they don't clash with Bootstrap. */

:root {
  --ot-ink: #1c2433;
  --ot-muted: #5d6677;
  --ot-line: #d9dde4;
  --ot-surface: #ffffff;
  --ot-primary: #1f5fbf;
  --ot-primary-ink: #ffffff;
  --ot-radius: 12px;
}

/* Mobile: bottom sheet where One Tap appears. Desktop (>= 640px): centered modal. */
.ot-backdrop {
  position: fixed; inset: 0; z-index: 1060;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(20, 27, 40, .45);
  opacity: 0; transition: opacity .2s ease;
  color: var(--ot-ink);
}
.ot-backdrop[hidden] { display: none; }
.ot-backdrop.is-open { opacity: 1; }

.ot-dialog {
  box-sizing: border-box;
  width: 100%;
  max-height: 92dvh; overflow-y: auto;
  background: var(--ot-surface);
  border-radius: 16px 16px 0 0;
  padding: 12px 20px calc(20px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 32px rgba(20, 27, 40, .18);
  transform: translateY(100%);
  transition: transform .28s cubic-bezier(.2, .8, .2, 1);
  text-align: left;
}
.ot-backdrop.is-open .ot-dialog { transform: translateY(0); }
.ot-handle { width: 36px; height: 4px; border-radius: 2px; background: var(--ot-line); margin: 0 auto 12px; }

@media (min-width: 640px) {
  .ot-backdrop { align-items: center; }
  .ot-dialog {
    width: 400px; border-radius: var(--ot-radius); padding: 24px;
    box-shadow: 0 16px 48px rgba(20, 27, 40, .22);
    transform: scale(.96); opacity: 0;
    transition: transform .2s ease, opacity .2s ease;
  }
  .ot-backdrop.is-open .ot-dialog { transform: scale(1); opacity: 1; }
  .ot-handle { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ot-backdrop, .ot-dialog { transition: none !important; }
}

/* Header: the Google account being used */
.ot-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--ot-line); margin-bottom: 20px; }
.ot-head[hidden] { display: none; }
.ot-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; background: #e6eaf0; display: grid; place-items: center; font-weight: 600; color: var(--ot-muted); overflow: hidden; }
.ot-who { min-width: 0; flex: 1; }
.ot-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ot-email { font-size: .875rem; color: var(--ot-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ot-center h2 { font-size: 1.2rem; font-weight: 600; margin: 0 0 6px; text-wrap: balance; }
.ot-center { text-align: center; padding: 16px 0 8px; }


.ot-spinner { width: 32px; height: 32px; margin: 0 auto 16px; border: 3px solid var(--ot-line); border-top-color: var(--ot-primary); border-radius: 50%; animation: ot-spin .8s linear infinite; }
@keyframes ot-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ot-spinner { animation-duration: 2s; } }
