/**
 * Autenticação — mesmo tema da dashboard (index) Zunkfy
 */
:root {
  --zf-bg: #050505;
  --zf-card: #111111;
  --zf-elevated: rgba(255, 255, 255, 0.04);
  --zf-border: rgba(255, 255, 255, 0.08);
  --zf-green: #ccff00;
  --zf-green-dim: rgba(204, 255, 0, 0.1);
  --zf-green-glow: rgba(204, 255, 0, 0.35);
  --zf-text: #ffffff;
  --zf-text-secondary: #888888;
  --zf-muted: #666666;
  --zf-danger: #ff4757;
  --zf-radius-sm: 12px;
  --zf-grad: linear-gradient(135deg, #6a8a00, #ccff00);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html.zf-auth-page {
  height: 100%;
  width: 100%;
}

body.zf-auth {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--zf-bg) !important;
  color: var(--zf-text);
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.zf-auth-app {
  display: flex;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--zf-bg);
}

.zf-auth-visual {
  flex: 1;
  min-height: 280px;
  background: var(--zf-bg) url('../img/bglogin.png') center/cover no-repeat;
}

.zf-auth-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: var(--zf-bg);
  border-left: 1px solid var(--zf-border);
  padding: 40px 24px;
}

.zf-auth-panel--scroll {
  justify-content: flex-start;
  overflow-y: auto;
}

.zf-auth-panel__inner {
  width: 100%;
  max-width: 400px;
}

.zf-auth-panel__inner--wide {
  max-width: 440px;
}

.zf-auth-brand {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}

.zf-auth-brand img {
  width: 50px;
  filter: drop-shadow(0 4px 14px var(--zf-green-glow));
  animation: zfAuthLogoFloat 3s ease-in-out infinite;
}

@keyframes zfAuthLogoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.zf-auth-title {
  font-size: 26px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.zf-auth-lead {
  color: var(--zf-muted);
  font-size: 14px;
  text-align: center;
  line-height: 1.55;
  margin-bottom: 28px;
}

.zf-auth-form {
  width: 100%;
}

.zf-auth-field {
  width: 100%;
  margin-bottom: 22px;
}

.zf-auth-field label {
  display: block;
  color: var(--zf-muted);
  font-weight: 500;
  margin-bottom: 10px;
  font-size: 14px;
}

.zf-auth-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 8px 14px;
  background: var(--zf-elevated);
  border: 1px solid var(--zf-border);
  border-radius: var(--zf-radius-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.zf-auth-input-wrap:focus-within {
  border-color: rgba(204, 255, 0, 0.45);
  box-shadow: 0 0 0 2px rgba(204, 255, 0, 0.12);
}

.zf-auth-input-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--zf-green);
  background: var(--zf-green-dim);
  border-radius: 8px;
  flex-shrink: 0;
}

.zf-auth-input-icon svg {
  width: 16px;
  height: 16px;
}

.zf-auth-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--zf-text);
  outline: none;
}

.zf-auth-input::placeholder {
  color: var(--zf-muted);
}

.zf-auth-input:-webkit-autofill,
.zf-auth-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #141414 inset !important;
  -webkit-text-fill-color: var(--zf-text) !important;
  caret-color: var(--zf-green);
}

.zf-auth-toggle-pw {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--zf-muted);
  display: flex;
}

.zf-auth-toggle-pw:hover {
  color: var(--zf-green);
}

.zf-auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  width: 100%;
}

.zf-auth-check {
  display: flex;
  align-items: center;
  gap: 8px;
}

.zf-auth-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--zf-green);
  cursor: pointer;
}

.zf-auth-check label {
  font-size: 13px;
  color: var(--zf-muted);
  cursor: pointer;
  margin: 0;
}

.zf-auth-link {
  font-size: 13px;
  color: var(--zf-green);
  text-decoration: none;
  font-weight: 500;
}

.zf-auth-link:hover {
  opacity: 0.85;
}

.zf-auth-btn {
  width: 100%;
  min-height: 52px;
  padding: 14px 20px;
  border: none;
  border-radius: var(--zf-radius-sm);
  background: var(--zf-grad);
  color: #050505;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.zf-auth-btn:hover:not(:disabled) {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--zf-green-glow);
}

.zf-auth-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.zf-auth-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
  color: var(--zf-muted);
}

.zf-auth-footer a {
  color: var(--zf-green);
  font-weight: 600;
  text-decoration: none;
}

.zf-auth-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--zf-radius-sm);
  font-size: 13px;
  margin: 16px 0;
  max-width: 400px;
  width: 100%;
}

.zf-auth-alert--error {
  background: rgba(255, 71, 87, 0.1);
  border-left: 3px solid var(--zf-danger);
  color: #ffb4c0;
}

.zf-auth-alert--success {
  background: rgba(204, 255, 0, 0.08);
  border-left: 3px solid var(--zf-green);
  color: var(--zf-green);
}

.zf-auth-info {
  background: var(--zf-green-dim);
  border: 1px solid rgba(204, 255, 0, 0.2);
  border-radius: var(--zf-radius-sm);
  padding: 12px 14px;
  font-size: 13px;
  color: var(--zf-text-secondary);
  line-height: 1.55;
  text-align: center;
  margin-bottom: 24px;
}

.zf-auth-info strong {
  color: var(--zf-green);
}

/* OTP */
.zf-auth-otp-grid {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.zf-auth-otp-cell {
  width: 48px;
  height: 56px;
  background: var(--zf-elevated);
  border: 2px solid var(--zf-border);
  border-radius: var(--zf-radius-sm);
  font-size: 24px;
  font-weight: 700;
  color: var(--zf-text);
  text-align: center;
  outline: none;
  caret-color: var(--zf-green);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.zf-auth-otp-cell:focus {
  border-color: rgba(204, 255, 0, 0.5);
  box-shadow: 0 0 0 2px rgba(204, 255, 0, 0.15);
}

.zf-auth-otp-cell.filled {
  border-color: rgba(204, 255, 0, 0.35);
  background: var(--zf-green-dim);
}

.zf-auth-otp-cell.error {
  border-color: var(--zf-danger);
  animation: zfAuthShake 0.4s ease;
}

@keyframes zfAuthShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.zf-auth-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 8px;
  color: var(--zf-muted);
  font-size: 13px;
  text-decoration: none;
}

.zf-auth-back:hover {
  color: var(--zf-green);
}

/* 2FA setup (force-setup) */
.zf-auth-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 0 8px;
  max-width: 440px;
  margin: 0 auto;
  width: 100%;
}

.zf-auth-step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--zf-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--zf-muted);
}

.zf-auth-step-dot.active {
  border-color: var(--zf-green);
  background: var(--zf-green-dim);
  color: var(--zf-green);
}

.zf-auth-step-dot.done {
  border-color: var(--zf-green);
  background: rgba(204, 255, 0, 0.15);
  color: var(--zf-green);
}

.zf-auth-step-line {
  flex: 1;
  max-width: 60px;
  height: 2px;
  background: var(--zf-border);
}

.zf-auth-step-line.done {
  background: var(--zf-green);
}

.zf-auth-step-panel {
  display: none;
  width: 100%;
}

.zf-auth-step-panel.active {
  display: block;
}

.zf-auth-warn {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  margin-bottom: 20px;
  border-radius: var(--zf-radius-sm);
  background: rgba(255, 71, 87, 0.08);
  border: 1px solid rgba(255, 71, 87, 0.25);
  font-size: 13px;
  color: #ffb4c0;
  line-height: 1.5;
}

.zf-auth-how {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.zf-auth-how-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--zf-text-secondary);
  line-height: 1.5;
}

.zf-auth-how-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--zf-green-dim);
  color: var(--zf-green);
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zf-auth-how a {
  color: var(--zf-green);
}

.zf-auth-qr {
  text-align: center;
  padding: 16px;
  margin-bottom: 20px;
  border-radius: var(--zf-radius-sm);
  border: 1px solid var(--zf-border);
  background: rgba(255, 255, 255, 0.02);
}

.zf-auth-qr p {
  font-size: 12px;
  color: var(--zf-muted);
  margin-bottom: 10px;
}

.zf-auth-secret {
  font-family: ui-monospace, monospace;
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--zf-elevated);
  border: 1px solid var(--zf-border);
  color: var(--zf-green);
  cursor: pointer;
  word-break: break-all;
  margin-top: 8px;
}

.zf-auth-loading {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.zf-auth-loading.is-active {
  display: flex;
}

.zf-auth-loading__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.88);
  animation: zfAuthFadeIn 0.3s ease;
}

@keyframes zfAuthFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Signin — card glass (referência) */
html.zf-auth-page:has(body.zf-auth--glass-signin),
html.zf-auth-page:has(body.zf-auth--glass-signup) {
  background: #050505;
}

body.zf-auth--glass-signin,
body.zf-auth--glass-signup {
  background: #050505 !important;
  overflow-x: hidden;
  position: relative;
}

/* App não pode ter fundo sólido — cobria a animação */
body.zf-auth--glass-signin .zf-auth-app,
body.zf-auth--glass-signin .zf-auth-app--centered,
body.zf-auth--glass-signin .zf-auth-panel,
body.zf-auth--glass-signin .zf-auth-panel__inner,
body.zf-auth--glass-signup .zf-auth-app,
body.zf-auth--glass-signup .zf-auth-app--centered,
body.zf-auth--glass-signup .zf-auth-panel,
body.zf-auth--glass-signup .zf-auth-panel__inner {
  background: transparent !important;
}

body.zf-auth--glass-signup .zf-auth-glass-card {
  max-width: 440px;
}

body.zf-auth--glass-signup .zf-auth-float-wrap--has-toggle {
  padding-right: 48px;
}

body.zf-auth--glass-signup .zf-auth-panel,
body.zf-auth--glass-signup .zf-auth-app--centered {
  overflow: visible;
}

.zf-auth-pw-strength {
  margin-top: 10px;
  padding: 0 4px;
  transition: opacity 0.2s ease;
}

.zf-auth-pw-strength.is-empty {
  display: none;
}

.zf-auth-pw-strength__track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 6px;
}

.zf-auth-pw-strength__bar {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: #ff6b6b;
  transition: width 0.25s ease, background 0.25s ease;
}

.zf-auth-pw-strength--weak .zf-auth-pw-strength__bar {
  background: #ff6b6b;
}

.zf-auth-pw-strength--medium .zf-auth-pw-strength__bar {
  background: #f5c542;
}

.zf-auth-pw-strength--strong .zf-auth-pw-strength__bar {
  background: var(--zf-green);
  box-shadow: 0 0 12px var(--zf-green-glow);
}

.zf-auth-pw-strength__label {
  font-size: 12px;
  font-weight: 500;
  color: var(--zf-text-secondary);
}

.zf-auth-pw-strength--weak .zf-auth-pw-strength__label {
  color: #ff8a8a;
}

.zf-auth-pw-strength--medium .zf-auth-pw-strength__label {
  color: #f5c542;
}

.zf-auth-pw-strength--strong .zf-auth-pw-strength__label {
  color: var(--zf-green);
}

.zf-auth-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #050505;
}

/* Iluminação tipo holofote no topo (atrás do card) */
.zf-auth-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 48% at 50% -6%, rgba(204, 255, 0, 0.34) 0%, rgba(106, 138, 0, 0.08) 42%, transparent 62%),
    radial-gradient(ellipse 95% 55% at 50% 105%, rgba(204, 255, 0, 0.14) 0%, transparent 58%);
  animation: zfAuthLightPulse 7s ease-in-out infinite;
}

.zf-auth-bg::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 42%;
  width: min(520px, 92vw);
  height: min(360px, 55vh);
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(204, 255, 0, 0.14) 0%, rgba(204, 255, 0, 0.04) 50%, transparent 75%);
  animation: zfAuthLightBreath 9s ease-in-out infinite;
}

@keyframes zfAuthLightPulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

@keyframes zfAuthLightBreath {
  0%, 100% { opacity: 0.65; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
}

/* Contorno lateral — luz de recorte, não manchas brilhantes */
.zf-auth-bg__orb {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.7;
  will-change: transform, opacity;
}

.zf-auth-bg__orb--1 {
  width: min(300px, 48vw);
  height: min(500px, 72vh);
  top: 8%;
  left: -6%;
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  background: linear-gradient(180deg, rgba(204, 255, 0, 0.28) 0%, transparent 82%);
  animation: zfAuthRimLeft 14s ease-in-out infinite;
}

.zf-auth-bg__orb--2 {
  width: min(300px, 48vw);
  height: min(500px, 72vh);
  top: 10%;
  right: -6%;
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  background: linear-gradient(180deg, rgba(204, 255, 0, 0.24) 0%, transparent 82%);
  animation: zfAuthRimRight 16s ease-in-out infinite;
}

.zf-auth-bg__orb--3 {
  width: min(100%, 560px);
  height: 140px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse 85% 100% at 50% 100%, rgba(204, 255, 0, 0.22) 0%, transparent 68%);
  filter: blur(44px);
  animation: zfAuthFloorGlow 10s ease-in-out infinite;
}

@keyframes zfAuthRimLeft {
  0%, 100% { opacity: 0.55; transform: translateX(0); }
  50% { opacity: 0.85; transform: translateX(3%); }
}

@keyframes zfAuthRimRight {
  0%, 100% { opacity: 0.5; transform: translateX(0); }
  50% { opacity: 0.8; transform: translateX(-3%); }
}

@keyframes zfAuthFloorGlow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 0.9; }
}

.zf-auth-bg__grid {
  position: absolute;
  inset: -50%;
  z-index: 1;
  background-image:
    linear-gradient(rgba(204, 255, 0, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(204, 255, 0, 0.11) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 82% 72% at 50% 48%, #000 5%, transparent 82%);
  -webkit-mask-image: radial-gradient(ellipse 82% 72% at 50% 48%, #000 5%, transparent 82%);
  animation: zfAuthGridPan 40s linear infinite;
  opacity: 0.85;
}

@keyframes zfAuthGridPan {
  0% { transform: translate(0, 0); }
  100% { transform: translate(40px, 40px); }
}

.zf-auth-bg__vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse 85% 75% at 50% 48%, transparent 35%, rgba(0, 0, 0, 0.35) 75%, rgba(0, 0, 0, 0.65) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, transparent 28%, transparent 75%, rgba(0, 0, 0, 0.35) 100%);
}

body.zf-auth--glass-signin .zf-auth-app--centered,
body.zf-auth--glass-signup .zf-auth-app--centered {
  position: relative;
  z-index: 2;
  isolation: isolate;
}

.zf-auth-app--centered {
  justify-content: center;
  align-items: center;
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 24px 16px;
}

.zf-auth-app--centered .zf-auth-panel {
  flex: none;
  width: 100%;
  max-width: 480px;
  border: none;
  padding: 0;
  background: transparent;
}

.zf-auth-app--centered .zf-auth-panel__inner {
  max-width: none;
}

.zf-auth-glass-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(18, 18, 20, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.zf-auth-glass-card--enter {
  animation: zfAuthCardIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.zf-auth-glass-card__progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 4;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.zf-auth-glass-card__progress.is-active {
  opacity: 1;
}

.zf-auth-glass-card__progress::after {
  content: '';
  display: block;
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, transparent, var(--zf-green), transparent);
  transform: translateX(-100%);
}

.zf-auth-glass-card__progress.is-active::after {
  animation: zfAuthProgressBar 1.1s ease-in-out infinite;
}

@keyframes zfAuthProgressBar {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

.zf-auth-glass-card--submitting {
  pointer-events: none;
}

.zf-auth-glass-card--submitting .zf-auth-glass-card__body {
  opacity: 0.92;
  transition: opacity 0.25s ease;
}

.zf-auth-glass-card--submitting .zf-auth-glass-card__glow {
  animation: zfAuthGlowSubmit 1.2s ease-in-out infinite;
}

@keyframes zfAuthGlowSubmit {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 1; filter: brightness(1.15); }
}

.zf-auth-glass-card--submitting .zf-auth-glass-title,
.zf-auth-glass-card--submitting .zf-auth-glass-lead {
  opacity: 0.7;
  transition: opacity 0.25s ease;
}

.zf-auth-form--submitting .zf-auth-submit-circle {
  animation: none;
  transform: translateY(-50%) scale(0.96);
}

.zf-auth-form--submitting .zf-auth-submit-circle svg {
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.zf-auth-form--submitting .zf-auth-submit-circle::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(5, 5, 5, 0.2);
  border-top-color: #050505;
  border-radius: 50%;
  animation: zfAuthBtnSpin 0.65s linear infinite;
}

@keyframes zfAuthBtnSpin {
  to { transform: rotate(360deg); }
}

.zf-auth-glass-card--denied {
  animation: zfAuthCardDenied 0.75s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes zfAuthCardDenied {
  0%, 100% { transform: translateX(0); }
  12% { transform: translateX(-10px); }
  24% { transform: translateX(10px); }
  36% { transform: translateX(-8px); }
  48% { transform: translateX(8px); }
  60% { transform: translateX(-4px); }
  72% { transform: translateX(4px); }
}

.zf-auth-glass-card--denied::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
  animation: zfAuthDeniedFlash 0.75s ease both;
}

@keyframes zfAuthDeniedFlash {
  0% {
    background: rgba(255, 71, 87, 0.28);
    box-shadow: inset 0 0 0 2px rgba(255, 71, 87, 0.5);
  }
  100% {
    background: transparent;
    box-shadow: inset 0 0 0 0 transparent;
  }
}

.zf-auth-glass-card--denied .zf-auth-glass-card__glow {
  animation: zfAuthGlowDenied 0.75s ease both;
}

@keyframes zfAuthGlowDenied {
  0% {
    background: radial-gradient(circle, rgba(255, 71, 87, 0.35) 0%, transparent 68%);
  }
  100% {
    background: radial-gradient(circle, rgba(204, 255, 0, 0.22) 0%, transparent 68%);
  }
}

@keyframes zfAuthCardIn {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.zf-auth-glass-card__shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.03) 50%,
    transparent 60%
  );
  background-size: 200% 100%;
  animation: zfAuthShimmer 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes zfAuthShimmer {
  0%, 100% { background-position: 200% 0; }
  50% { background-position: -200% 0; }
}

.zf-auth-glass-card__glow {
  animation: zfAuthGlowPulse 4s ease-in-out infinite;
}

@keyframes zfAuthGlowPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.75; transform: scale(1.05); }
}

.zf-auth-reveal {
  opacity: 0;
  animation: zfAuthReveal 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--zf-delay, 0ms);
}

@keyframes zfAuthReveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.zf-auth-glass-card__glow {
  position: absolute;
  top: -40%;
  left: -20%;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(204, 255, 0, 0.22) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.zf-auth-glass-card__body {
  position: relative;
  z-index: 1;
  padding: 32px 32px 36px;
}

.zf-auth-glass-logo {
  display: flex;
  justify-content: center;
  margin: 0 0 10px;
  line-height: 0;
  user-select: none;
  -webkit-user-select: none;
}

.zf-auth-glass-logo img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 8px 28px var(--zf-green-glow));
  animation: zfAuthLogoFloat 3s ease-in-out infinite;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none;
  -webkit-touch-callout: none;
}

.zf-auth-glass-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 6px;
  color: var(--zf-text);
}

.zf-auth-glass-lead {
  font-size: 15px;
  color: var(--zf-text-secondary);
  margin-bottom: 28px;
  line-height: 1.4;
}

.zf-auth-form--glass {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.zf-auth-float-field {
  width: 100%;
}

.zf-auth-float-field > label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--zf-text-secondary);
  margin-bottom: 8px;
  padding-left: 4px;
}

.zf-auth-float-wrap {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.zf-auth-float-wrap:focus-within {
  border-color: rgba(204, 255, 0, 0.4);
  box-shadow: 0 0 0 2px rgba(204, 255, 0, 0.1);
}

.zf-auth-float-wrap--has-action {
  padding-right: 52px;
}

.zf-auth-float-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: 15px;
  font-weight: 500;
  color: var(--zf-text);
  outline: none;
}

.zf-auth-float-input::placeholder {
  color: rgba(136, 136, 136, 0.85);
  font-weight: 400;
}

.zf-auth-float-input:-webkit-autofill,
.zf-auth-float-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #121214 inset !important;
  -webkit-text-fill-color: var(--zf-text) !important;
}

.zf-auth-toggle-pw--glass {
  position: absolute;
  right: 58px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--zf-muted);
  display: flex;
  z-index: 2;
}

.zf-auth-toggle-pw--glass:hover {
  color: var(--zf-green);
}

.zf-auth-submit-circle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: var(--zf-grad);
  color: #050505;
  box-shadow: 0 4px 20px var(--zf-green-glow);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
  z-index: 3;
  overflow: hidden;
}

.zf-auth-submit-circle:hover {
  filter: brightness(1.08);
  transform: translateY(-50%) scale(1.04);
  box-shadow: 0 6px 28px var(--zf-green-glow);
}

.zf-auth-submit-circle:active {
  transform: translateY(-50%) scale(0.98);
}

.zf-auth-row--glass {
  margin: 4px 0 0;
  padding: 0 2px;
}

.zf-auth-footer--glass {
  margin-top: 28px;
  text-align: center;
  font-size: 14px;
}

.zf-auth-alert--in-card {
  margin: 0 0 20px;
  max-width: none;
}

/* Toast / alertas signin */
.zf-auth-toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 14px 14px 16px;
  margin-bottom: 20px;
  border-radius: 14px;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.zf-auth-toast::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.5;
  pointer-events: none;
}

.zf-auth-toast--animate {
  animation: zfAuthToastIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes zfAuthToastIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

body.zf-auth--has-error .zf-auth-toast--error.zf-auth-toast--animate {
  animation: zfAuthToastIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both,
    zfAuthToastShake 0.5s ease 0.35s;
}

@keyframes zfAuthToastShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}

.zf-auth-toast--error {
  background: rgba(255, 71, 87, 0.12);
  border-color: rgba(255, 71, 87, 0.35);
  color: #ffd6dc;
}

.zf-auth-toast--error::before {
  background: linear-gradient(135deg, rgba(255, 71, 87, 0.15), transparent 60%);
}

.zf-auth-toast--success {
  background: rgba(204, 255, 0, 0.1);
  border-color: rgba(204, 255, 0, 0.35);
  color: #e8ffb0;
}

.zf-auth-toast--success::before {
  background: linear-gradient(135deg, rgba(204, 255, 0, 0.12), transparent 60%);
}

.zf-auth-toast--info {
  background: rgba(204, 255, 0, 0.06);
  border-color: rgba(204, 255, 0, 0.28);
  color: #d4e88a;
}

.zf-auth-toast--info::before {
  background: linear-gradient(135deg, rgba(204, 255, 0, 0.1), transparent 60%);
}

.zf-auth-toast--info .zf-auth-toast__icon {
  color: var(--zf-green);
}

.zf-auth-toast__icon {
  flex-shrink: 0;
  margin-top: 1px;
  color: inherit;
  opacity: 0.95;
}

.zf-auth-toast--error .zf-auth-toast__icon {
  color: #ff6b7a;
}

.zf-auth-toast--success .zf-auth-toast__icon {
  color: var(--zf-green);
}

.zf-auth-toast__content {
  flex: 1;
  min-width: 0;
}

.zf-auth-toast__title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--zf-text);
}

.zf-auth-toast__message {
  font-size: 13px;
  line-height: 1.5;
  color: inherit;
  opacity: 0.92;
}

.zf-auth-toast__close {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.zf-auth-toast__close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--zf-text);
}

.zf-auth-toast.is-dismissed {
  animation: zfAuthToastOut 0.35s ease forwards;
}

@keyframes zfAuthToastOut {
  to {
    opacity: 0;
    transform: translateY(-8px);
    max-height: 0;
    margin: 0;
    padding: 0;
  }
}

.zf-auth-float-wrap--error {
  border-color: rgba(255, 71, 87, 0.45) !important;
  box-shadow: 0 0 0 2px rgba(255, 71, 87, 0.12) !important;
  animation: zfAuthFieldPulse 0.6s ease;
}

.zf-auth-float-wrap--pending {
  border-color: rgba(204, 255, 0, 0.35) !important;
  box-shadow: 0 0 0 2px rgba(204, 255, 0, 0.1) !important;
  animation: zfAuthFieldPulse 0.6s ease;
}

body.zf-auth--pending-approval .zf-auth-glass-card--denied::after {
  animation-name: zfAuthPendingFlash;
}

@keyframes zfAuthPendingFlash {
  0% {
    background: rgba(204, 255, 0, 0.18);
    box-shadow: inset 0 0 0 2px rgba(204, 255, 0, 0.35);
  }
  100% {
    background: transparent;
    box-shadow: inset 0 0 0 0 transparent;
  }
}

body.zf-auth--pending-approval .zf-auth-glass-card--denied .zf-auth-glass-card__glow {
  animation-name: zfAuthGlowPending;
}

@keyframes zfAuthGlowPending {
  0% {
    background: radial-gradient(circle, rgba(204, 255, 0, 0.3) 0%, transparent 68%);
  }
  100% {
    background: radial-gradient(circle, rgba(204, 255, 0, 0.22) 0%, transparent 68%);
  }
}

@keyframes zfAuthFieldPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.01); }
}

.zf-auth-float-wrap:focus-within {
  transform: translateY(-1px);
}

.zf-auth-submit-circle {
  animation: zfAuthBtnIdle 2.5s ease-in-out infinite;
}

@keyframes zfAuthBtnIdle {
  0%, 100% { box-shadow: 0 4px 20px var(--zf-green-glow); }
  50% { box-shadow: 0 6px 28px rgba(204, 255, 0, 0.5); }
}

.zf-auth-submit-circle:hover {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .zf-auth-bg__orb,
  .zf-auth-bg__grid,
  .zf-auth-bg::before,
  .zf-auth-bg::after {
    animation: none !important;
  }

  .zf-auth-glass-card--enter,
  .zf-auth-glass-card--denied,
  .zf-auth-glass-card--submitting,
  .zf-auth-reveal,
  .zf-auth-toast--animate,
  .zf-auth-glass-card__glow,
  .zf-auth-glass-card__shimmer,
  .zf-auth-glass-logo img,
  .zf-auth-submit-circle,
  .zf-auth-glass-card__progress.is-active::after,
  .zf-auth-form--submitting .zf-auth-submit-circle::after {
    animation: none !important;
  }

  .zf-auth-reveal {
    opacity: 1;
  }

  .zf-auth-glass-card--denied::after {
    background: rgba(255, 71, 87, 0.12);
  }
}

/* 2FA inline no signin glass */
.zf-auth-2fa-inline {
  margin-top: 8px;
  animation: zfAuth2faIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes zfAuth2faIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.zf-auth-2fa-inline__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 16px;
  color: var(--zf-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.zf-auth-2fa-inline__divider::before,
.zf-auth-2fa-inline__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--zf-border);
}

.zf-auth-2fa-inline__lead {
  font-size: 13px;
  color: var(--zf-text-secondary);
  line-height: 1.55;
  text-align: center;
  margin-bottom: 18px;
}

.zf-auth-2fa-inline__lead strong {
  color: var(--zf-green);
}

.zf-auth-2fa-inline__hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--zf-muted);
}

.zf-auth-otp-grid--glass {
  margin-bottom: 16px;
}

.zf-auth-btn--glass-full {
  width: 100%;
  min-height: 48px;
  margin-top: 4px;
}

.zf-auth-btn--ghost {
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--zf-text-secondary);
  box-shadow: none;
}

.zf-auth-btn--ghost:hover {
  border-color: rgba(204, 255, 0, 0.35);
  color: var(--zf-text);
}

.zf-auth-form--resend {
  margin-top: 4px;
}

body.zf-auth--step-email-verify .zf-auth-glass-lead--solo {
  margin: 0 0 18px;
}

.zf-auth-back--2fa {
  margin-top: 14px;
}

body.zf-auth--step-2fa .zf-auth-glass-lead--solo {
  margin: 0 0 18px;
  font-size: 15px;
  color: var(--zf-text-secondary);
  text-align: center;
  line-height: 1.5;
}

body.zf-auth--step-2fa .zf-auth-2fa-inline {
  margin-top: 0;
}

@media (max-width: 768px) {
  .zf-auth-app {
    flex-direction: column;
  }

  .zf-auth-glass-card__body {
    padding: 32px 22px 28px;
  }

  .zf-auth-glass-title {
    font-size: 26px;
  }

  .zf-auth-visual {
    min-height: 180px;
    flex: none;
  }

  .zf-auth-panel {
    border-left: none;
    border-top: 1px solid var(--zf-border);
    padding: 28px 20px 36px;
    justify-content: flex-start;
  }

  .zf-auth-otp-cell {
    width: 42px;
    height: 50px;
    font-size: 20px;
  }
}
