/**
 * Auth Modal — Layout & Container
 *
 * Modal structure: root variables, backdrop, dialog, close button, panel container.
 * Part of the auth-modal module split from auth-modal.css.
 *
 * @see static/css/auth-modal.css (original)
 */

:root {
  --gf-auth-backdrop: rgba(15, 23, 42, 0.72);
  --gf-auth-panel-gap: 2.5rem;
}

.gf-auth-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background-color: transparent;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 1050;
}

.gf-auth-modal[aria-hidden='false'] {
  opacity: 1;
  visibility: visible;
}

.gf-auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background-color: var(--gf-auth-backdrop);
  backdrop-filter: blur(2px);
}

.gf-auth-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 980px;
  max-height: 90vh;
  background: #ffffff;
  border-radius: var(--gf-card-radius);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.35);
  padding: clamp(1.75rem, 2.5vw + 1.25rem, 2.75rem);
  overflow-y: auto;
  overflow-x: hidden;
}

.gf-auth-modal__close {
  position: absolute;
  top: 1.125rem;
  right: 1.125rem;
  background-color: rgba(var(--gf-color-primary-rgb), 0.12);
  border-color: transparent;
  color: var(--gf-color-neutral-700);
}

.gf-auth-modal__close:hover,
.gf-auth-modal__close:focus {
  background-color: rgba(var(--gf-color-primary-rgb), 0.2);
  color: var(--gf-color-primary);
}

.gf-auth-modal__panels {
  position: relative;
  display: grid;
}

.gf-auth-panel[hidden] {
  display: none !important;
}

/* Nota TOS do reCAPTCHA no fluxo de cadastro (Google exige atribuição textual
   quando o badge fixed é ocultado no mobile — ver guard em base/_base.css). */
.recaptcha-tos-notice {
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--bs-secondary-color, #6c757d);
  margin-top: 0.75rem;
  margin-bottom: 0;
}

.recaptcha-tos-notice a {
  color: inherit;
  text-decoration: underline;
}

.recaptcha-tos-notice a:hover,
.recaptcha-tos-notice a:focus {
  color: var(--gf-color-primary, #1a7431);
}

/* Form submitting state — block all interactions */
.gf-auth-form--submitting {
  pointer-events: none;
  opacity: 0.7;
}
