/* ================================================================
   InterFlocks Auth — Ultra-Premium Sign In / Sign Up
   Split-screen: dark gradient brand panel + clean form
   ================================================================ */

body.auth-body{
  min-height: 100vh;
  cursor: auto !important;
  overflow-x: hidden;
}

/* Ensure Material Symbols icons render as glyphs, not text — overrides public.css body font */
.auth-body .material-symbols-outlined,
body.auth-body .material-symbols-outlined{
  font-family: "Material Symbols Outlined" !important;
  font-weight: normal !important;
  font-style: normal !important;
  display: inline-block;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Hide custom cursor / mesh on auth (mesh keeps but no cursor since we set cursor:auto) */
.auth-body .cursor-dot,
.auth-body .cursor-ring,
body.auth-body .cursor-dot,
body.auth-body .cursor-ring{ display: none !important; }

.auth-mesh{ z-index: 0; }
.auth-mesh .orb{ filter: blur(140px); }

.auth-wrap-new{
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* ========== LEFT: brand panel ========== */
.auth-side-new{
  position: relative;
  background:
    radial-gradient(60% 50% at 20% 10%, rgba(255,127,17,.20), transparent 60%),
    radial-gradient(50% 50% at 90% 80%, rgba(139,92,246,.18), transparent 60%),
    radial-gradient(40% 40% at 50% 100%, rgba(255,77,143,.14), transparent 60%),
    linear-gradient(180deg, #0A0908 0%, #13110F 100%);
  color: #FFF;
  padding: 1.85rem 2.5rem 1.85rem 2.85rem;
  display: flex; flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.auth-side-new::before{
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 30% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 50%, #000 30%, transparent 80%);
}

.auth-back{
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--sans-text, 'Inter', sans-serif);
  font-size: .82rem; font-weight: 500;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  padding: .55rem .95rem .55rem .85rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-self: flex-start;
  transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.auth-back:hover{
  background: rgba(255,255,255,.08);
  color: #FFF;
  border-color: rgba(255,255,255,.20);
  transform: translateX(-3px);
}

.auth-side-content{
  position: relative; z-index: 2;
  max-width: 520px;
}

.auth-pill{
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .35rem .85rem .35rem .55rem;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  font-family: 'JetBrains Mono', monospace;
  font-size: .65rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.auth-pill .dot{
  width: 6px; height: 6px; border-radius: 50%;
  background: linear-gradient(135deg, #FF7F11, #FF4D8F);
  box-shadow: 0 0 0 3px rgba(255,127,17,.18);
  animation: pulseDot 1.6s ease-in-out infinite;
}

.auth-side-new .auth-headline{
  font-family: 'Bricolage Grotesque', 'Inter Tight', sans-serif !important;
  font-variation-settings: "wdth" 100, "opsz" 96;
  font-weight: 500 !important;
  font-size: clamp(1.85rem, 3.4vw, 2.75rem) !important;
  line-height: 1.05 !important;
  letter-spacing: -.025em !important;
  color: #FFF !important;
  margin: 0 0 1rem !important;
  text-wrap: balance;
}
.auth-side-new .auth-headline .serif-italic{
  font-family: 'Instrument Serif', Georgia, serif !important;
  font-style: italic !important;
  font-weight: 400 !important;
  letter-spacing: -.015em !important;
  padding-right: .03em;
}
.auth-headline .serif-italic{
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.025em;
}
.auth-headline .gradient-text{
  background: linear-gradient(115deg, #FF7F11 0%, #FF4D8F 50%, #FFB870 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-fill-color: transparent;
}
.auth-side-new .auth-lede{
  font-family: 'Inter', sans-serif !important;
  font-size: .98rem !important;
  line-height: 1.5 !important;
  color: rgba(255,255,255,.75) !important;
  margin: 0 0 1.4rem !important;
  text-wrap: pretty;
}

.auth-trust-row{
  display: grid;
  grid-template-columns: 1fr;
  gap: .5rem;
}
.auth-trust{
  display: flex; align-items: center; gap: .75rem;
  padding: .7rem .85rem;
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  transition: background .25s, border-color .25s, transform .25s;
}
.auth-trust:hover{
  background: rgba(255,255,255,.07);
  border-color: rgba(255,127,17,.25);
  transform: translateX(4px);
}
.auth-trust-ic{
  flex: none;
  width: 32px; height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(255,127,17,.18), rgba(255,77,143,.10));
  border: 1px solid rgba(255,127,17,.20);
  display: inline-flex; align-items: center; justify-content: center;
  color: #FFB870;
  overflow: hidden;
}
.auth-trust-ic .material-symbols-outlined{
  color: #FFB870;
  font-size: 18px;
}
.auth-trust > div{ display: flex; flex-direction: column; line-height: 1.2; }
.auth-side-new .auth-trust strong{
  font-family: 'Inter Tight', sans-serif !important;
  font-size: .92rem !important;
  font-weight: 600 !important;
  color: #FFF !important;
}
.auth-side-new .auth-trust > div > span{
  font-family: 'JetBrains Mono', monospace !important;
  font-size: .65rem !important;
  color: rgba(255,255,255,.5) !important;
  letter-spacing: .04em;
  margin-top: .15rem;
}

.auth-quote{
  position: relative; z-index: 2;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 1.15rem 1.25rem 1.1rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  max-width: 520px;
}
.auth-quote .quote-mark{
  color: rgba(255,127,17,.40);
  margin-bottom: .65rem;
}
.auth-side-new .auth-quote p{
  font-family: 'Bricolage Grotesque', 'Inter Tight', sans-serif !important;
  font-variation-settings: "wdth" 95, "opsz" 36;
  font-weight: 400 !important;
  font-size: .95rem !important;
  line-height: 1.4 !important;
  color: rgba(255,255,255,.92) !important;
  letter-spacing: -.015em !important;
  margin: 0 0 .75rem !important;
  text-wrap: pretty;
}
.auth-quote-author{
  display: flex; align-items: center; gap: .75rem;
}
.auth-quote-author .avatar{
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF7F11, #FF4D8F);
  color: #FFF;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -.02em;
  box-shadow: 0 4px 12px rgba(255,127,17,.30);
}
.auth-quote-author > div{ display: flex; flex-direction: column; line-height: 1.25; }
.auth-side-new .auth-quote-author strong{
  font-family: 'Inter Tight', sans-serif !important;
  font-size: .88rem !important;
  font-weight: 600 !important;
  color: #FFF !important;
}
.auth-side-new .auth-quote-author > div > span{
  font-family: 'JetBrains Mono', monospace !important;
  font-size: .68rem !important;
  color: rgba(255,255,255,.5) !important;
  letter-spacing: .04em;
  margin-top: .1rem;
}

/* ========== RIGHT: form panel ========== */
.auth-form-new{
  position: relative;
  background: var(--bg, #FFFFFF);
  display: flex; flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.5rem 3.5rem;
  z-index: 1;
  min-height: 100vh;
}

.auth-brand-mobile{
  display: none;
  margin-bottom: 1.5rem;
}
.auth-brand-mobile img{
  height: 36px;
  width: auto;
}

.auth-card-new{
  width: 100%;
  max-width: 420px;
  padding: 2rem 2rem 1.75rem;
  background: var(--bg-card, #FFFFFF);
  border: 1px solid var(--line, rgba(10,10,10,.06));
  border-radius: 24px;
  box-shadow:
    0 32px 80px -20px rgba(10,10,10,.12),
    0 12px 32px -12px rgba(10,10,10,.06),
    inset 0 1px 0 rgba(255,255,255,.95);
  position: relative;
}

/* Form typography */
.auth-card-new h2{
  font-family: 'Bricolage Grotesque', 'Inter Tight', sans-serif !important;
  font-variation-settings: "wdth" 100, "opsz" 60;
  font-weight: 500 !important;
  font-size: 1.7rem !important;
  letter-spacing: -.025em !important;
  line-height: 1.05 !important;
  color: #0A0A0A !important;
  margin: 0 0 .35rem !important;
}
.auth-card-new p.text-muted{
  font-family: 'Inter', sans-serif !important;
  font-size: .95rem !important;
  color: #404040 !important;
  line-height: 1.5 !important;
}

/* Form fields */
.auth-card-new .form-label{
  font-family: 'Inter', sans-serif;
  font-size: .82rem;
  font-weight: 500;
  color: var(--ink, #0A0A0A);
  letter-spacing: -.005em;
  margin-bottom: .4rem;
  display: flex; align-items: center; justify-content: space-between;
}
.auth-card-new .form-control{
  background: var(--bg-soft, #FAFAF9);
  border: 1px solid var(--line-2, rgba(10,10,10,.10));
  border-radius: 12px;
  padding: .85rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
  color: var(--ink, #0A0A0A);
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.auth-card-new .form-control::placeholder{
  color: var(--ink-faint, #A3A3A3);
}
.auth-card-new .form-control:focus{
  background: #FFF;
  border-color: rgba(255,127,17,.40);
  box-shadow: 0 0 0 4px rgba(255,127,17,.10);
  outline: 0;
}
.auth-card-new .form-check-label{
  font-family: 'Inter', sans-serif;
  font-size: .85rem;
  color: var(--ink-soft, #404040);
}
.auth-card-new .form-check-input{
  border: 1.5px solid var(--line-3, rgba(10,10,10,.16));
  border-radius: 5px;
  width: 1rem; height: 1rem;
  margin-top: .15rem;
}
.auth-card-new .form-check-input:checked{
  background: linear-gradient(135deg, #FF7F11, #FF4D8F);
  border-color: transparent;
  box-shadow: 0 2px 6px rgba(255,127,17,.30);
}
.auth-card-new .form-check-input:focus{
  box-shadow: 0 0 0 3px rgba(255,127,17,.18);
  border-color: rgba(255,127,17,.4);
}

/* Forgot link */
.auth-card-new a.text-brand-orange{
  color: var(--accent, #FF7F11) !important;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  text-decoration: none;
  transition: opacity .2s;
}
.auth-card-new a.text-brand-orange:hover{
  opacity: .75;
}

/* Submit button — gradient */
.auth-card-new .btn-brand{
  background: linear-gradient(135deg, #FFA350 0%, #FF7F11 50%, #FF4D8F 100%);
  background-size: 200% 200%;
  background-position: 0% 0%;
  color: #FFFFFF;
  border: 0;
  border-radius: 999px;
  padding: .95rem 1.5rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -.005em;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.4),
    0 10px 28px rgba(255,127,17,.40),
    0 0 0 1px rgba(255,127,17,.40);
  transition: background-position .5s, transform .2s, box-shadow .25s;
}
.auth-card-new .btn-brand:hover{
  color: #FFFFFF;
  background-position: 100% 100%;
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.45),
    0 14px 36px rgba(255,77,143,.45),
    0 0 0 1px rgba(255,77,143,.5);
}
.auth-card-new .btn-brand:disabled{
  opacity: .6;
  cursor: not-allowed;
}

/* Validation errors */
.auth-card-new .text-danger{
  color: #DC2626 !important;
  font-family: 'Inter', sans-serif;
  font-size: .82rem;
  margin-top: .25rem;
  display: block;
}
.auth-card-new .alert-danger{
  background: rgba(239,68,68,.06);
  border: 1px solid rgba(239,68,68,.20);
  color: #B91C1C;
  border-radius: 12px;
  padding: .75rem 1rem !important;
  font-family: 'Inter', sans-serif;
  font-size: .88rem;
}

/* Bottom contact link */
.auth-card-new p.text-center{
  font-family: 'Inter', sans-serif;
  font-size: .88rem;
  color: var(--ink-soft, #404040) !important;
}
.auth-card-new p.text-center a{
  color: var(--accent, #FF7F11) !important;
  text-decoration: none;
  font-weight: 500;
}
.auth-card-new p.text-center a:hover{
  opacity: .75;
}

.auth-foot{
  position: absolute;
  bottom: 1.25rem;
  left: 0; right: 0;
  margin: 0;
  padding: 0 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: .68rem;
  color: var(--ink-mute, #737373);
  letter-spacing: .04em;
  text-align: center;
}
.auth-foot a{
  color: var(--ink-soft, #404040);
  text-decoration: none;
}
.auth-foot a:hover{ color: var(--ink, #0A0A0A); }

/* Pulse keyframe (in case public.css isn't loaded) */
@keyframes pulseDot{ 0%,100%{ opacity:1; transform:scale(1) } 50%{ opacity:.55; transform:scale(.85) } }

/* ========== Responsive ========== */
@media (max-width: 991px){
  .auth-wrap-new{
    grid-template-columns: 1fr;
    min-height: 100vh;
  }
  .auth-side-new{
    padding: 1.5rem 1.5rem 1.75rem;
    min-height: auto;
    gap: 1.25rem;
  }
  .auth-side-content{ max-width: 100%; }
  .auth-side-new .auth-headline{
    font-size: clamp(1.65rem, 5.5vw, 2.25rem) !important;
    margin-bottom: .75rem !important;
  }
  .auth-side-new .auth-lede{
    font-size: .92rem !important;
    margin-bottom: 1.1rem !important;
  }
  .auth-quote{ display: none; }
  .auth-form-new{
    padding: 1.75rem 1.25rem 3rem;
    min-height: auto;
  }
  .auth-brand-mobile{ display: inline-flex; }
  .auth-foot{
    position: relative;
    bottom: auto;
    margin-top: 1.25rem;
    padding: 0;
  }
}

@media (max-width: 768px){
  .auth-side-new{ padding: 1.35rem 1.25rem 1.5rem; gap: 1rem; }
  .auth-side-new .auth-headline{ font-size: 1.65rem !important; line-height: 1.1 !important; }
  .auth-side-new .auth-lede{ font-size: .9rem !important; margin-bottom: 1rem !important; }
  .auth-pill{ font-size: .58rem; padding: .25rem .65rem .25rem .4rem; margin-bottom: .85rem; }
  .auth-back{ font-size: .75rem; padding: .45rem .8rem .45rem .7rem; }
  .auth-trust{ padding: .55rem .75rem; gap: .65rem; }
  .auth-trust-ic{ width: 28px; height: 28px; border-radius: 8px; }
  .auth-side-new .auth-trust strong{ font-size: .85rem !important; }
  .auth-side-new .auth-trust > div > span{ font-size: .58rem !important; }
}

@media (max-width: 576px){
  body.auth-body{ font-size: 15px; }
  .auth-side-new{ padding: 1.25rem 1rem 1.35rem; }
  .auth-side-new .auth-headline{ font-size: 1.5rem !important; }
  .auth-trust-row{ gap: .4rem; }
  .auth-card-new{
    padding: 1.5rem 1.25rem 1.4rem;
    border-radius: 18px;
    max-width: 100%;
  }
  .auth-card-new h2{ font-size: 1.5rem !important; }
  .auth-form-new{ padding: 1.25rem 1rem 2.5rem; }
}

@media (max-width: 380px){
  .auth-side-new .auth-headline{ font-size: 1.35rem !important; }
  .auth-card-new{ padding: 1.25rem 1.1rem 1.2rem; }
  .auth-card-new h2{ font-size: 1.35rem !important; }
}
