/* FLUXDIGITAL — Auth pages (login / register) styles */
.auth-root {
  min-height: 100vh;
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #f2f8f6 0%, #e7f3ef 100%);
  font-family: var(--font-body);
}
.auth-blob { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.auth-blob--a { width: 420px; height: 420px; top: -140px; right: -80px; background: rgba(30, 170, 78, 0.12); }
.auth-blob--b { width: 380px; height: 380px; bottom: -130px; left: -90px; background: rgba(47, 127, 196, 0.12); }

.auth-split {
  position: relative; z-index: 2;
  max-width: 1080px; min-height: 100vh; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  align-items: center; padding: 40px 20px;
}
.auth-split > * { min-width: 0; }

/* ---- brand panel ---- */
.auth-panel { padding: 20px 12px; animation: flux-fade-up 0.7s ease backwards; }
.auth-panel-mini { display: none; }
.auth-panel-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 1.18; color: var(--text); margin-bottom: 14px;
}
.auth-panel-hi { background: linear-gradient(110deg, var(--green-deep), var(--blue)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.auth-panel-sub { color: var(--muted); font-size: 0.98rem; line-height: 1.7; margin-bottom: 26px; max-width: 40ch; }
.auth-panel-points { display: flex; flex-direction: column; gap: 12px; }
.auth-pp { display: flex; align-items: center; gap: 12px; font-size: 0.92rem; font-weight: 500; color: var(--ink-soft); }
.auth-pp svg { width: 20px; height: 20px; }

/* ---- brand-panel QR card ---- */
.auth-qr {
  margin-top: 28px; max-width: 300px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; padding: 16px; box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.auth-qr-head { text-align: center; }
.auth-qr-title { font-family: var(--font-display); font-weight: 700; font-size: 0.92rem; color: var(--text); display: block; }
.auth-qr-sub { font-size: 0.72rem; color: var(--muted); margin-top: 2px; display: block; }
.auth-qr-box {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px;
  display: flex; align-items: center; justify-content: center;
}
.auth-qr-box svg { width: 128px; height: 128px; display: block; }
.auth-qr-foot { font-size: 0.66rem; color: var(--muted); font-weight: 600; }

/* ---- card ---- */
.auth-card-wrap { display: flex; justify-content: center; min-width: 0; width: 100%; }
.auth-card {
  width: 400px; max-width: 100%; min-width: 0;
  background: var(--card); border-radius: 28px;
  padding: 50px 32px 26px; box-shadow: var(--shadow-float);
  animation-delay: 0.12s;
}
.auth-mobile-logo { justify-content: center; margin-bottom: 22px; }
.auth-title { font-family: var(--font-display); font-weight: 700; font-size: 1.55rem; color: var(--text); }
.auth-sub { color: var(--muted); font-size: 0.9rem; margin: 4px 0 22px; }

.auth-root form { display: flex; flex-direction: column; gap: 16px; }
.flux-form-row { display: flex; flex-direction: column; gap: 7px; }
.flux-label-row { display: flex; align-items: center; justify-content: space-between; }
.flux-forgot { background: none; border: none; color: var(--teal); font-weight: 600; font-size: 0.82rem; cursor: pointer; padding: 0; }
.flux-forgot:hover { text-decoration: underline; }

.flux-input-with-icon { position: relative; display: flex; align-items: center; }
.flux-input-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--muted); display: inline-flex; pointer-events: none;
}
.flux-input-icon svg { width: 16px; height: 16px; }
.flux-field {
  width: 100%; padding: 13px 14px 13px 40px;
  border: 1.6px solid var(--line); border-radius: 14px; background: var(--bg);
  font-family: inherit; font-size: 0.95rem; color: var(--text);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.flux-field::placeholder { color: #a9c0bc; }
.flux-field:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px var(--teal-tint); background: #fff; }
.flux-pw-toggle {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--muted); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; padding: 6px; border-radius: 8px;
}
.flux-pw-toggle:hover { background: var(--bg); color: var(--text); }
.flux-input-with-icon:has(.flux-pw-toggle) .flux-field { padding-right: 44px; }

.auth-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0 14px; color: var(--muted); font-size: 0.8rem; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-foot { text-align: center; margin-top: 20px; font-size: 0.8rem; color: var(--muted); }
.auth-foot a { color: var(--teal); font-weight: 600; text-decoration: none; }

#loginBtn.disabled, #registerBtn.disabled { opacity: 0.6; pointer-events: none; }

@media (max-width: 800px) {
  .auth-split { grid-template-columns: 1fr; gap: 0; padding: 30px 18px; }
  .auth-panel { display: none; }
  .auth-card { box-shadow: var(--shadow-card); border-radius: 24px; padding: 40px 24px 22px; }
}