/**
 * Gmingo Auth 2026 — premium, simple card auth
 * Login + register presentation (navy marketplace brand, no purple/cream tropes).
 */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Sora:wght@600;700&display=swap');

:root {
  --gae-ink: #0b1220;
  --gae-muted: #5b6b7c;
  --gae-line: rgba(15, 23, 42, 0.1);
  --gae-surface: rgba(255, 255, 255, 0.92);
  --gae-navy: #143a7a;
  --gae-blue: #2f80ed;
  --gae-sky: #e8f1ff;
  --gae-ok: #0f766e;
  --gae-danger: #b42318;
  --gae-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.gmingo-auth-shell--enterprise,
.gmingo-auth-shell--enterprise .gmingo-auth-page,
.gae {
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.gmingo-auth-shell--enterprise,
.gmingo-auth-shell--enterprise {
  background:
    radial-gradient(1200px 600px at 12% -10%, rgba(47, 128, 237, 0.18), transparent 55%),
    radial-gradient(900px 500px at 92% 8%, rgba(20, 58, 122, 0.14), transparent 50%),
    linear-gradient(180deg, #f5f8fc 0%, #eef3f9 48%, #f7f9fc 100%) !important;
}

.gmingo-auth-shell--enterprise .gmingo-auth-page {
  min-height: calc(100vh - 5.5rem);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1.75rem 1rem 3rem;
  background: transparent;
  position: relative;
}

.gmingo-auth-shell--enterprise .gmingo-auth-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(20, 58, 122, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 58, 122, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 25%, transparent 72%);
  pointer-events: none;
  opacity: 0.7;
}

@media (min-width: 768px) {
  .gmingo-auth-shell--enterprise .gmingo-auth-page {
    align-items: center;
    padding: 2.25rem 1.25rem 3.25rem;
  }
}

.gmingo-auth-shell--enterprise .gmingo-auth-card,
.gae-card {
  width: 100%;
  max-width: 26rem;
  margin: 0 auto;
  background: var(--gae-surface);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 1.35rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 24px 48px -28px rgba(15, 31, 74, 0.45),
    0 8px 20px -12px rgba(15, 31, 74, 0.2);
  overflow: hidden;
  position: relative;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: gae-rise 0.55s var(--gae-ease) both;
  z-index: 1;
}

@keyframes gae-rise {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

@media (min-width: 640px) {
  .gmingo-auth-shell--enterprise .gmingo-auth-card,
  .gae-card {
    max-width: 27rem;
  }
}

.gmingo-auth-shell--enterprise .gmingo-auth-card-header {
  background: transparent !important;
  padding: 1.85rem 1.6rem 0.2rem !important;
  text-align: center;
  filter: none !important;
  animation: none !important;
}
.gmingo-auth-shell--enterprise .gmingo-auth-header-glow { display: none !important; }
.gmingo-auth-shell--enterprise .gmingo-auth-logo-link,
.gae-logo-link {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.15rem !important;
  padding: 0.7rem 1.15rem !important;
  border-radius: 1.15rem !important;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 18% 12%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.55) 38%, transparent 72%),
    linear-gradient(145deg, rgba(14, 116, 144, 0.12) 0%, rgba(15, 23, 42, 0.04) 46%, rgba(234, 179, 8, 0.14) 100%) !important;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow:
    0 10px 28px rgba(15, 23, 42, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.75) inset !important;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    background 0.35s ease;
  animation: gaeLogoBreathe 3.6s ease-in-out infinite;
}
.gmingo-auth-shell--enterprise .gmingo-auth-logo-link::before,
.gae-logo-link::before {
  content: '';
  position: absolute;
  inset: -35%;
  background: conic-gradient(from 180deg at 50% 50%, transparent 0deg, rgba(14, 116, 144, 0.12) 70deg, transparent 140deg, rgba(234, 179, 8, 0.14) 220deg, transparent 300deg);
  opacity: 0.55;
  z-index: 0;
  animation: gaeLogoSweep 8s linear infinite;
  pointer-events: none;
}
.gae-logo-glow {
  position: absolute;
  inset: 18% 12%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(14, 116, 144, 0.18) 0%, transparent 70%);
  filter: blur(10px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.gmingo-auth-shell--enterprise .gmingo-auth-logo-link:hover,
.gae-logo-link:hover {
  transform: translateY(-3px) scale(1.03);
  border-color: rgba(14, 116, 144, 0.22);
  box-shadow:
    0 16px 36px rgba(15, 23, 42, 0.12),
    0 0 0 4px rgba(14, 116, 144, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.85) inset !important;
  animation-play-state: paused;
}
.gmingo-auth-shell--enterprise .gmingo-auth-logo-link:hover .gae-logo-glow,
.gae-logo-link:hover .gae-logo-glow {
  opacity: 1;
  transform: scale(1.08);
}
.gmingo-auth-shell--enterprise .gmingo-auth-logo-link:focus-visible,
.gae-logo-link:focus-visible {
  outline: 2px solid rgba(14, 116, 144, 0.55);
  outline-offset: 3px;
}
.gmingo-auth-shell--enterprise .gmingo-auth-logo,
.gae-logo {
  position: relative;
  z-index: 1;
  height: 2.55rem !important;
  width: auto;
  max-width: 11rem;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(15, 23, 42, 0.08));
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
}
.gmingo-auth-shell--enterprise .gmingo-auth-logo-link:hover .gmingo-auth-logo,
.gae-logo-link:hover .gae-logo {
  transform: scale(1.04);
  filter: drop-shadow(0 4px 10px rgba(15, 23, 42, 0.12));
}
@keyframes gaeLogoBreathe {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow:
      0 10px 28px rgba(15, 23, 42, 0.08),
      0 1px 0 rgba(255, 255, 255, 0.75) inset;
  }
  50% {
    transform: translateY(-2px) scale(1.025);
    box-shadow:
      0 16px 34px rgba(15, 23, 42, 0.11),
      0 0 0 3px rgba(14, 116, 144, 0.06),
      0 1px 0 rgba(255, 255, 255, 0.85) inset;
  }
}
@keyframes gaeLogoSweep {
  to { transform: rotate(360deg); }
}
.gae-creator-hint {
  margin-top: 0.55rem;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.gae-creator-hint[hidden] {
  display: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .gmingo-auth-shell--enterprise .gmingo-auth-logo-link,
  .gae-logo-link,
  .gmingo-auth-shell--enterprise .gmingo-auth-logo-link::before,
  .gae-logo-link::before {
    animation: none !important;
  }
  .gmingo-auth-shell--enterprise .gmingo-auth-logo-link:hover,
  .gae-logo-link:hover {
    transform: none;
  }
}
.gmingo-auth-shell--enterprise .gmingo-auth-body {
  margin-top: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  border-top: 0 !important;
  padding: 0.55rem 1.6rem 1.85rem !important;
}
@media (min-width: 640px) {
  .gmingo-auth-shell--enterprise .gmingo-auth-body {
    padding: 0.65rem 1.85rem 2.1rem !important;
  }
}

.gae-title {
  margin: 0;
  font-family: Sora, "Plus Jakarta Sans", sans-serif;
  font-size: clamp(1.45rem, 2.4vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--gae-ink);
  line-height: 1.2;
}
.gae-subtitle {
  margin: 0.5rem auto 0;
  max-width: 22rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--gae-muted);
  font-weight: 450;
}
.gae-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gae-navy);
}

.gae-social {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 0;
}
.gae-social--after {
  margin-top: 0.15rem;
}
.gae-social__heading {
  margin: 0 0 0.1rem;
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--gae-muted);
  text-align: center;
}

.gae-sso,
.gmingo-auth-shell--enterprise .gpk-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.15rem;
  padding: 0.7rem 1rem 0.7rem 3rem;
  border-radius: 0.85rem;
  border: 1px solid var(--gae-line);
  background: #fff;
  color: var(--gae-ink);
  font-size: 0.9375rem;
  font-weight: 650;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.2s var(--gae-ease),
    box-shadow 0.2s ease,
    border-color 0.18s ease,
    background 0.18s ease;
  overflow: hidden;
}
.gae-sso:hover:not(:disabled),
.gmingo-auth-shell--enterprise .gpk-btn:hover:not(:disabled) {
  border-color: rgba(47, 128, 237, 0.35);
  box-shadow: 0 10px 22px -16px rgba(20, 58, 122, 0.55);
  transform: translateY(-1px);
  background: #fcfdff;
}
.gae-sso:active:not(:disabled),
.gmingo-auth-shell--enterprise .gpk-btn:active:not(:disabled) {
  transform: translateY(0);
}
.gae-sso:focus-visible,
.gmingo-auth-shell--enterprise .gpk-btn:focus-visible {
  outline: 2px solid var(--gae-blue);
  outline-offset: 2px;
}
.gae-sso:disabled,
.gmingo-auth-shell--enterprise .gpk-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.gae-sso__ico,
.gmingo-auth-shell--enterprise .gpk-btn__ico {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
}
.gae-sso__ico svg,
.gmingo-auth-shell--enterprise .gpk-btn__ico svg {
  width: 1.15rem;
  height: 1.15rem;
}

.gmingo-auth-shell--enterprise .gpk-providers {
  gap: 0.65rem;
  margin: 0;
}
.gmingo-auth-shell--enterprise .gpk-divider,
.gae-divider {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 1.15rem 0 1rem;
  color: #8a97a8;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.gmingo-auth-shell--enterprise .gpk-divider::before,
.gmingo-auth-shell--enterprise .gpk-divider::after,
.gae-divider::before,
.gae-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(15, 23, 42, 0.12), transparent);
}
.gmingo-auth-shell--enterprise .gpk-divider span,
.gae-divider span {
  flex: 0 0 auto;
}

.gae-alert {
  border-radius: 0.85rem;
  padding: 0.75rem 0.9rem;
  font-size: 0.84rem;
  line-height: 1.45;
  margin: 0 0 0.95rem;
}
.gae-alert--error {
  background: #fef3f2;
  color: var(--gae-danger);
  border: 1px solid #fecdca;
}
.gae-alert--warn {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}
.gae-alert--ok {
  background: #ecfdf5;
  color: var(--gae-ok);
  border: 1px solid #a7f3d0;
}

.gae-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.gae-field {
  margin: 0;
}
.gae-field__control {
  position: relative;
}
.gae-field__ico {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.15rem;
  height: 1.15rem;
  color: #7b8a9b;
  pointer-events: none;
  z-index: 1;
}
.gae-field__ico svg {
  width: 100%;
  height: 100%;
}
.gae-input,
.gmingo-auth-shell--enterprise .gmingo-auth-input {
  width: 100%;
  min-height: 3.25rem;
  padding: 1.35rem 0.95rem 0.55rem 2.75rem;
  border-radius: 0.85rem;
  border: 1px solid var(--gae-line);
  background: #fff;
  color: var(--gae-ink);
  font-size: 0.95rem;
  font-weight: 500;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  /* Keep autofill text readable without fighting floating labels */
  -webkit-text-fill-color: var(--gae-ink);
  caret-color: var(--gae-ink);
}
.gae-input:focus,
.gmingo-auth-shell--enterprise .gmingo-auth-input:focus {
  border-color: rgba(47, 128, 237, 0.55);
  box-shadow: 0 0 0 4px rgba(47, 128, 237, 0.12);
}
.gae-label {
  position: absolute;
  left: 2.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.92rem;
  color: #7b8a9b;
  pointer-events: none;
  z-index: 2;
  max-width: calc(100% - 3.5rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: transform 0.18s var(--gae-ease), font-size 0.18s ease, color 0.18s ease, top 0.18s ease, opacity 0.18s ease;
}
/* Floated label (filled / focused / autofilled) */
.gae-field.is-filled .gae-label,
.gae-field.is-autofilled .gae-label,
.gae-field:focus-within .gae-label,
.gae-field__control:has(.gae-input:not(:placeholder-shown)) .gae-label,
.gae-field__control:has(.gae-input:focus) .gae-label,
.gae-field__control:has(.gae-input:-webkit-autofill) .gae-label,
.gae-field__control:has(.gae-input:autofill) .gae-label,
.gae-input:not(:placeholder-shown) + .gae-label,
.gae-input:focus + .gae-label,
.gae-input:-webkit-autofill + .gae-label,
.gae-input:autofill + .gae-label,
.gae-input:-webkit-autofill ~ .gae-label,
.gae-input:autofill ~ .gae-label {
  top: 0.38rem;
  transform: none;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--gae-navy);
  opacity: 1;
}
/* Chrome autofill paint — keep card look without yellow wash fighting labels */
.gae-input:-webkit-autofill,
.gae-input:-webkit-autofill:hover,
.gae-input:-webkit-autofill:focus,
.gmingo-auth-shell--enterprise .gmingo-auth-input:-webkit-autofill {
  -webkit-text-fill-color: var(--gae-ink) !important;
  transition: background-color 99999s ease-in-out 0s;
  box-shadow: 0 0 0 1000px #fff inset !important;
  border-color: rgba(47, 128, 237, 0.35);
  animation-name: gaeOnAutoFillStart;
  animation-duration: 0.001s;
}
@keyframes gaeOnAutoFillStart {
  from { opacity: 0.99; }
  to { opacity: 1; }
}
.gae-field__hint {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: var(--gae-muted);
  line-height: 1.4;
}
.gae-field__eye {
  position: absolute;
  right: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #7b8a9b;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.55rem;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.gae-field__eye:hover { color: var(--gae-navy); background: var(--gae-sky); }

.gae-roles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}
@media (min-width: 640px) {
  .gae-roles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.gae-role {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.45rem 0.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--gae-line);
  background: #fff;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--gae-muted);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  text-align: center;
}
.gae-role span {
  line-height: 1.2;
}
.gae-role input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.gae-role.is-selected,
.gae-role:has(input:checked) {
  border-color: transparent;
  background: linear-gradient(135deg, #143a7a 0%, #2f80ed 100%);
  color: #fff;
  box-shadow: 0 10px 20px -12px rgba(20, 58, 122, 0.7);
}

.gae-check {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.8rem;
  color: var(--gae-muted);
  line-height: 1.45;
}
.gae-check input {
  margin-top: 0.15rem;
  accent-color: var(--gae-blue);
}
.gae-check a {
  color: var(--gae-navy);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.gae-link-row {
  display: flex;
  justify-content: flex-end;
  margin-top: -0.25rem;
}
.gae-link-row a {
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--gae-navy);
  text-decoration: none;
}
.gae-link-row a:hover { text-decoration: underline; }

.gae-submit,
.gmingo-auth-shell--enterprise .gmingo-auth-submit {
  position: relative;
  width: 100%;
  min-height: 3.2rem;
  margin-top: 0.25rem;
  border: 0;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, #143a7a 0%, #2f80ed 100%);
  color: #fff;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 14px 28px -16px rgba(20, 58, 122, 0.75);
  transition: transform 0.2s var(--gae-ease), box-shadow 0.2s ease, filter 0.2s ease;
  overflow: hidden;
}
.gae-submit:hover,
.gmingo-auth-shell--enterprise .gmingo-auth-submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 18px 32px -16px rgba(20, 58, 122, 0.8);
}
.gae-submit:active,
.gmingo-auth-shell--enterprise .gmingo-auth-submit:active {
  transform: translateY(0);
}

.gae-benefits {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}
.gae-benefits__title {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gae-ink);
}
.gae-benefits__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
.gae-benefits__list li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: var(--gae-muted);
}
.gae-benefits__list svg {
  width: 0.95rem;
  height: 0.95rem;
  color: var(--gae-blue);
  flex: 0 0 auto;
}

.gae-footer {
  margin-top: 1.15rem;
  text-align: center;
}
.gae-footer__switch {
  margin: 0;
  font-size: 0.88rem;
  color: var(--gae-muted);
}
.gae-footer__switch a {
  color: var(--gae-navy);
  font-weight: 700;
  text-decoration: none;
}
.gae-footer__switch a:hover { text-decoration: underline; }
.gae-footer__legal {
  margin: 0.55rem 0 0;
  font-size: 0.72rem;
  color: #8a97a8;
}
.gae-footer__legal a {
  color: inherit;
  text-decoration: none;
}
.gae-footer__legal a:hover { text-decoration: underline; }

.gae-ripple {
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  animation: gae-ripple 0.55s ease-out forwards;
  pointer-events: none;
}
@keyframes gae-ripple {
  to { transform: scale(2.4); opacity: 0; }
}

.gpk-btn.is-loading,
.gae-sso.is-loading,
.gae-submit.is-loading {
  opacity: 0.72;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .gae-card,
  .gae-sso,
  .gae-submit,
  .gmingo-auth-shell--enterprise .gpk-btn {
    animation: none !important;
    transition: none !important;
  }
}
