/* ─────────────────────────────────────────────────────────────────
   auth.css — SniperSignals auth pages (login / signup / password reset)
   Goal: highly visible validation errors + clean modern SaaS look.
   ─────────────────────────────────────────────────────────────────── */

/* page wrapper */
.auth-wrap{
  max-width:480px;
  margin:6vh auto 8vh;
  padding:0 16px;
  position:relative;
  z-index:1;
}
@media (max-width:520px){
  .auth-wrap{margin:3vh auto 5vh;}
}

/* card */
.auth-card{
  background:linear-gradient(135deg,#ffffff0d,#ffffff02);
  border:1px solid #ffffff1f;
  backdrop-filter:blur(12px);
  border-radius:16px;
  padding:32px 32px 28px;
  box-shadow:0 8px 28px #000c, 0 0 0 1px #ffffff05 inset;
}
@media (max-width:520px){
  .auth-card{padding:22px 18px 20px;border-radius:14px;}
}

/* brand mark */
.auth-brand{
  display:flex;flex-direction:column;align-items:center;gap:8px;
  margin:0 0 18px;
}
.auth-brand img{
  width:56px;height:56px;border-radius:14px;
  box-shadow:0 0 0 1px #ffffff14, 0 4px 14px #0008;
  background:#0b0b0e;
  padding:6px;
}
.auth-brand .auth-brand-name{
  font-family:'Orbitron',sans-serif;font-weight:700;letter-spacing:.5px;
  font-size:1.05rem;color:var(--accent);
  text-shadow:0 0 4px var(--accent),0 0 12px var(--accent);
}

.auth-title{
  font-size:1.5rem;font-weight:700;text-align:center;
  margin:0 0 6px;color:var(--accent);letter-spacing:.2px;
}
.auth-sub{
  font-size:.9rem;text-align:center;opacity:.82;line-height:1.5;
  margin:0 auto 20px;max-width:36ch;
}

/* form layout */
.auth-form{display:flex;flex-direction:column;gap:14px;}
.auth-field{display:flex;flex-direction:column;gap:6px;}
.auth-field label,
.auth-field .auth-field-label{
  font-size:.82rem;font-weight:600;letter-spacing:.3px;
  text-transform:uppercase;opacity:.86;
}
.auth-field input[type="text"],
.auth-field input[type="email"],
.auth-field input[type="password"],
.auth-field input[type="url"]{
  width:100%;
  background:var(--panel);
  border:1px solid #ffffff2a;
  color:var(--text);
  padding:12px 14px;
  border-radius:10px;
  font-size:1rem;
  line-height:1.3;
  transition:border-color .15s ease, box-shadow .15s ease, background .15s ease;
  background-image:none !important;   /* override neon.css key-icon padding */
  background-position:initial !important;
}
.auth-field input:focus{
  outline:none;
  border-color:var(--accent2);
  box-shadow:0 0 0 3px color-mix(in srgb, var(--accent2) 28%, transparent);
}
[data-theme="light"] .auth-field input{
  background:#ffffff;
  border-color:#0001a;
  color:#0d1216;
}

/* invalid state on field input */
.auth-field input[aria-invalid="true"],
.auth-field.has-error input{
  border-color:#ff5566 !important;
  box-shadow:0 0 0 3px rgba(255,85,102,.18) !important;
  background:rgba(255,85,102,.06);
}

/* helptext (e.g. password requirements) */
.auth-help{
  font-size:.78rem;line-height:1.5;opacity:.72;
  margin:2px 0 0;
}
.auth-help ul{
  list-style:disc;padding-left:18px;margin:4px 0 0;
}

/* per-field error message block */
.auth-field-errors{
  display:flex;flex-direction:column;gap:4px;
  margin:4px 0 0;padding:0;list-style:none;
}
.auth-field-errors li,
.auth-field-error{
  display:flex;align-items:flex-start;gap:8px;
  background:rgba(255,85,102,.10);
  border:1px solid rgba(255,85,102,.55);
  color:#ffd9df;
  padding:8px 10px;
  border-radius:8px;
  font-size:.86rem;line-height:1.4;
  font-weight:500;
}
.auth-field-errors li::before,
.auth-field-error::before{
  content:"⚠";
  font-size:.95rem;line-height:1.3;
  color:#ff8a96;
  flex:0 0 auto;
}

/* form-wide error banner (top of form) */
.auth-alert{
  display:flex;align-items:flex-start;gap:10px;
  background:rgba(255,85,102,.12);
  border:1px solid rgba(255,85,102,.65);
  color:#ffe2e7;
  padding:12px 14px;
  border-radius:10px;
  margin:0 0 16px;
  font-size:.92rem;line-height:1.45;
  box-shadow:0 0 0 1px rgba(255,85,102,.10) inset;
}
.auth-alert .auth-alert-icon{
  flex:0 0 auto;
  width:22px;height:22px;border-radius:50%;
  background:rgba(255,85,102,.85);
  color:#1a0408;font-weight:800;
  display:flex;align-items:center;justify-content:center;
  font-size:.85rem;line-height:1;
}
.auth-alert .auth-alert-body{flex:1;min-width:0;}
.auth-alert .auth-alert-title{font-weight:700;margin:0 0 2px;}
.auth-alert ul{margin:4px 0 0;padding-left:18px;}
.auth-alert ul li{margin:0;}

/* success / info banner (e.g. password reset confirmation) */
.auth-info{
  background:rgba(0,200,180,.10);
  border:1px solid rgba(0,200,180,.55);
  color:#cdfff5;
  padding:12px 14px;border-radius:10px;
  margin:0 0 16px;font-size:.92rem;line-height:1.45;
}

/* submit button — full width on auth pages */
.auth-form .neon-btn,
.auth-submit{
  width:100%;
  padding:13px 20px;
  font-size:1rem;
  margin-top:6px;
}

/* secondary links / footers under the card */
.auth-foot{
  text-align:center;font-size:.9rem;
  margin:16px 0 0;opacity:.88;
}
.auth-foot a{color:var(--accent);font-weight:600;}
.auth-foot a:hover{text-decoration:underline;}

/* reassurance strip inside card */
.auth-trust{
  margin:16px 0 0;
  padding:12px 14px;
  background:rgba(255,255,255,.03);
  border:1px solid #ffffff14;
  border-radius:10px;
  font-size:.82rem;line-height:1.5;opacity:.88;
}
.auth-trust ul{margin:0;padding-left:18px;}
.auth-trust li{margin:2px 0;}

/* terms note */
.auth-terms{
  font-size:.78rem;text-align:center;opacity:.78;margin:14px 0 0;line-height:1.5;
}
.auth-terms a{color:var(--accent);}
.auth-terms a:hover{text-decoration:underline;}

/* divider with text */
.auth-divider{
  display:flex;align-items:center;gap:10px;
  margin:18px 0 0;font-size:.8rem;opacity:.6;
}
.auth-divider::before,.auth-divider::after{
  content:"";flex:1;height:1px;background:#ffffff1f;
}

/* light theme polish */
[data-theme="light"] .auth-card{
  background:linear-gradient(135deg,#ffffff,#f4f7fb);
  border-color:#0000001a;
  box-shadow:0 8px 28px #00000018;
}
[data-theme="light"] .auth-field input{
  background:#ffffff;border-color:#00000026;color:#0d1216;
}
[data-theme="light"] .auth-field-errors li,
[data-theme="light"] .auth-field-error,
[data-theme="light"] .auth-alert{
  background:rgba(220,38,38,.08);
  color:#7a0a17;
  border-color:rgba(220,38,38,.55);
}
[data-theme="light"] .auth-alert .auth-alert-icon{background:#dc2626;color:#fff;}
[data-theme="light"] .auth-trust{
  background:#00000005;border-color:#00000014;
}

/* override Django default errorlist if any sneaks through */
ul.errorlist,
.errorlist{
  list-style:none;
  display:flex;flex-direction:column;gap:4px;
  margin:6px 0 0;padding:0;
}
ul.errorlist li,
.errorlist li{
  display:flex;align-items:flex-start;gap:8px;
  background:rgba(255,85,102,.10);
  border:1px solid rgba(255,85,102,.55);
  color:#ffd9df;
  padding:8px 10px;border-radius:8px;
  font-size:.86rem;line-height:1.4;
  font-weight:500;
}
ul.errorlist li::before,
.errorlist li::before{
  content:"⚠";color:#ff8a96;flex:0 0 auto;
}

/* Force the auth pages to remove the giant pulse-circle backdrop overlap */
body.auth-page .absolute.top-0.left-0{opacity:.6;}
