/* =========================================================
   ABB Ventures — Auth (login / register)  ·  premium
   Floating glass card over an animated dark-gold scene
   ========================================================= */
.auth {
  position: relative; overflow: hidden;
  min-height: 100svh; min-height: 100vh;
  display: grid; grid-template-columns: 1.05fr 1fr;
  background: radial-gradient(130% 120% at 82% -10%, #341f0c, #171008 46%, #0a0603 100%);
  color: #e8dcc8;
}

/* ---------- Animated background ---------- */
.auth-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.auth-bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.auth-bg .blob { position: absolute; border-radius: 50%; filter: blur(60px); will-change: transform; }
.auth-bg .b1 { width: 620px; height: 620px; right: -160px; top: -180px;
  background: radial-gradient(closest-side, rgba(231,180,90,.4), transparent 70%); animation: authBlob 20s ease-in-out infinite alternate; }
.auth-bg .b2 { width: 520px; height: 520px; left: -180px; bottom: -160px;
  background: radial-gradient(closest-side, rgba(176,106,44,.3), transparent 70%); animation: authBlob 26s ease-in-out infinite alternate-reverse; }
@keyframes authBlob { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(-60px,50px) scale(1.15); } }

/* thin gold hairline down the divider */
.auth::before {
  content: ""; position: absolute; z-index: 1; top: 8%; bottom: 8%; left: calc(1.05 / 2.05 * 100%); width: 1px;
  background: linear-gradient(180deg, transparent, rgba(231,180,90,.35), transparent);
}

/* ---------- Brand side ---------- */
.auth-brand {
  position: relative; z-index: 2;
  padding: 46px 54px; display: flex; flex-direction: column; justify-content: space-between;
}
.auth-brand .ab-logo { position: relative; z-index: 3; opacity: 0; animation: authIn .7s .05s both; }
.auth-brand .ab-logo img { height: 52px; width: auto; filter: drop-shadow(0 4px 12px rgba(0,0,0,.5)); }
.ab-mid { position: relative; z-index: 3; }
.ab-eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--display); font-weight: 600; letter-spacing: .13em; text-transform: uppercase;
  font-size: .68rem; color: var(--gold); border: 1px solid rgba(231,180,90,.3);
  background: rgba(231,180,90,.07); padding: .5em 1em; border-radius: 999px; margin-bottom: 22px;
  opacity: 0; animation: authIn .7s .12s both;
}
.ab-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(231,180,90,.6); animation: ping 2s ease-out infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(231,180,90,0); } 100% { box-shadow: 0 0 0 0 rgba(231,180,90,0); } }
.auth-brand h2 {
  font-family: var(--display); font-weight: 800; letter-spacing: -.02em; line-height: 1.06;
  font-size: clamp(1.9rem, 2.7vw, 2.9rem); color: #f4e9d8; margin-bottom: 14px;
  opacity: 0; animation: authIn .7s .2s both;
}
.auth-brand h2 .grad {
  background: linear-gradient(100deg, #b06a2c 0%, #e7b45a 35%, #ffd98a 50%, #e7b45a 65%, #b06a2c 100%);
  background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 4s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }
.auth-brand .ab-sub { color: #c4b193; max-width: 430px; font-size: 1rem; opacity: 0; animation: authIn .7s .28s both; }
.ab-points { list-style: none; margin: 26px 0 0; display: grid; gap: 12px; }
.ab-points li { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 500; color: #e8dcc8; font-size: .95rem; opacity: 0; animation: authIn .6s both; }
.ab-points li:nth-child(1) { animation-delay: .36s; }
.ab-points li:nth-child(2) { animation-delay: .44s; }
.ab-points li:nth-child(3) { animation-delay: .52s; }
.ab-points li:nth-child(4) { animation-delay: .6s; }
.ab-points .tick {
  width: 26px; height: 26px; flex: none; border-radius: 8px; display: grid; place-items: center; font-size: .8rem;
  background: rgba(231,180,90,.14); border: 1px solid rgba(231,180,90,.3); color: var(--gold);
}
/* glowing floating bull */
.auth-bull {
  position: absolute; right: -110px; bottom: 10px; width: 320px; z-index: 1; opacity: .92;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.5)) drop-shadow(0 0 60px rgba(231,180,90,.28));
  animation: bullFloat 6s ease-in-out infinite;
}
.auth-bull-aura { position: absolute; right: -70px; bottom: 20px; width: 300px; height: 300px; z-index: 0;
  background: radial-gradient(closest-side, rgba(231,180,90,.3), transparent 70%); filter: blur(6px);
  animation: pulse 5s ease-in-out infinite; pointer-events: none; }
@keyframes bullFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes pulse { 0%,100% { opacity: .7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
.ab-foot { position: relative; z-index: 3; font-size: .82rem; color: #8f7a5f; display: flex; gap: 16px; opacity: 0; animation: authIn .7s .5s both; }
.ab-foot a { color: #a89173; }
.ab-foot a:hover { color: var(--gold); }

/* ---------- Form side ---------- */
.auth-panel { position: relative; z-index: 2; display: grid; place-items: center; padding: 40px 30px; }
.auth-card {
  position: relative; width: min(440px, 100%); padding: 38px 36px 34px; border-radius: 24px;
  background: linear-gradient(165deg, rgba(30,20,10,.86), rgba(14,9,5,.9));
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(231,180,90,.16);
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(231,180,90,.04), inset 0 1px 0 rgba(255,255,255,.05);
  animation: cardIn .8s cubic-bezier(.2,.7,.2,1) both;
}
/* gold gradient border sheen */
.auth-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: 24px; padding: 1px; pointer-events: none;
  background: linear-gradient(150deg, rgba(231,180,90,.6), transparent 35%, transparent 70%, rgba(176,106,44,.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(26px) scale(.985); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }

.auth-card .m-logo { display: none; }
.auth-card h1 { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; font-size: 1.85rem; color: #f4e9d8; margin-bottom: 6px; }
.auth-card .lead { color: #a99373; margin-bottom: 24px; font-size: .96rem; }

/* alerts */
.alert { border-radius: 12px; padding: 12px 14px; font-size: .9rem; margin-bottom: 18px; border: 1px solid; }
.alert-error { background: rgba(214,80,60,.12); border-color: rgba(214,80,60,.4); color: #f0b8ac; }
.alert-info  { background: rgba(231,180,90,.08); border-color: rgba(231,180,90,.3); color: #e7c893; }

/* fields with icons */
.field { margin-bottom: 15px; }
.field label { display: block; font-family: var(--display); font-weight: 500; font-size: .82rem; color: #c4b193; margin-bottom: 7px; }
.input-wrap { position: relative; }
.input-wrap .i-ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #b0895a; display: grid; place-items: center; pointer-events: none; transition: color .2s; }
.input-wrap .i-ic svg { width: 18px; height: 18px; }
.field input {
  width: 100%; font-family: var(--font); font-size: .98rem; color: #f4e9d8;
  background: rgba(255,255,255,.04); border: 1px solid rgba(231,180,90,.18);
  border-radius: 12px; padding: 13px 15px 13px 44px; transition: border-color .2s, box-shadow .2s, background .2s;
  -webkit-appearance: none; appearance: none;
}
.field input::placeholder { color: #7c6b54; }
.field input:focus {
  outline: none; border-color: rgba(231,180,90,.65);
  box-shadow: 0 0 0 3px rgba(231,180,90,.14); background: rgba(255,255,255,.06);
}
.input-wrap:focus-within .i-ic { color: var(--gold); }
.has-pw input { padding-right: 46px; }
.field.has-error input { border-color: rgba(214,80,60,.6); }
.field .err { color: #f0a99b; font-size: .8rem; margin-top: 6px; }
.pw-toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; cursor: pointer; color: #a08a6c; padding: 8px; border-radius: 8px; display: grid; place-items: center;
}
.pw-toggle svg { width: 19px; height: 19px; }
.pw-toggle:hover { color: var(--gold); }

/* rows */
.form-row { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 20px; font-size: .88rem; }
.check { display: flex; align-items: center; gap: 9px; cursor: pointer; color: #b7a184; }
.check input { width: 17px; height: 17px; accent-color: #d89a4e; }
.form-row a, .auth-alt a, .reg-note a { color: var(--gold); font-family: var(--display); font-weight: 600; }
.form-row a:hover, .auth-alt a:hover { color: var(--gold-hi); }
.reg-note { font-size: .8rem; color: #8f7a5f; margin: 4px 0 18px; line-height: 1.5; }

.btn-full { width: 100%; justify-content: center; }
.auth-alt { text-align: center; margin-top: 22px; color: #a99373; font-size: .92rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* stagger the form controls in */
.auth-card form > * { animation: authIn .55s both; }
.auth-card form > *:nth-child(1) { animation-delay: .18s; }
.auth-card form > *:nth-child(2) { animation-delay: .24s; }
.auth-card form > *:nth-child(3) { animation-delay: .3s; }
.auth-card form > *:nth-child(4) { animation-delay: .36s; }
.auth-card form > *:nth-child(5) { animation-delay: .42s; }
.auth-card form > *:nth-child(6) { animation-delay: .48s; }
.auth-card form > *:nth-child(7) { animation-delay: .54s; }

@keyframes authIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth::before { display: none; }
  .auth-brand { display: none; }
  .auth-panel { padding: 34px 20px; align-items: center; }
  .auth-card .m-logo { display: block; text-align: center; margin-bottom: 22px; }
  .auth-card .m-logo img { height: 48px; }
}
@media (max-width: 420px) {
  .grid-2 { grid-template-columns: 1fr; }
  .auth-card { padding: 30px 22px 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-bg .blob, .auth-bull, .auth-bull-aura, .auth-brand h2 .grad { animation: none !important; }
  .auth-card, .auth-card form > *, .auth-brand > *, .ab-mid > *, .ab-points li { animation: none !important; opacity: 1 !important; transform: none !important; filter: none !important; }
}
