/* ============================================================
   TestSeriesPoint — Sign In
   Design: Centered card on a dark navy gradient + grid backdrop
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500..700&family=Inter:wght@400;500;600;700&display=swap');

:root{
  --bg-top:     #0E1130;
  --bg-bottom:  #1B1F4A;
  --grid-line:  rgba(255,255,255,0.05);
  --glow:       rgba(99,102,241,0.35);
  --card:       #FFFFFF;
  --line:       #E9E3D6;
  --amber:      #F0B25E;
  --amber-deep: #D98E2B;
  --text-dark:  #1A1F2E;
  --text-mute:  #8A8478;
  --text-soft:  #A8A296;
  --green:      #4FAE7E;

  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', sans-serif;
}

*{ box-sizing: border-box; }

.auth-wrapper{
  position: relative;
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  font-family: var(--font-body);
  color: var(--text-dark);
  padding: 2.5rem 1.5rem;
  overflow: hidden;
}

/* faint grid texture, like the reference hero background */
.auth-wrapper::before{
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

/* soft ambient glow, top-left, like the reference's indigo wash */
.auth-wrapper::after{
  content: "";
  position: absolute;
  top: -10%;
  left: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, var(--glow), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

/* Left brand panel + footer note are hidden in this layout;
   only the card (panel-right/auth-card) is shown, centered. */
.panel-left{ display: none; }

.panel-right{
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.auth-card{
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border-radius: 28px;
  padding: 2.6rem 2.4rem 2.2rem;
  box-shadow:
    0 1px 2px rgba(26,31,46,0.03),
    0 30px 60px rgba(0,0,0,0.35);
}

/* ---- Brand mark, small + centered above the heading ---- */

.brand-logo{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-dark);
  margin-bottom: 1.3rem;
}

.brand-icon{
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--amber);
  color: #2A1A05;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.brand-name{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}
.brand-name span{ color: var(--amber-deep); }

.auth-title{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.65rem;
  letter-spacing: -0.01em;
  text-align: center;
  margin: 0 0 1.7rem;
  color: var(--text-dark);
}

.auth-subtitle{
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-mute);
  text-align: center;
  margin: 0 0 1.9rem;
}

.field-group{
  margin-bottom: 0.9rem;
}

.field-group label{
  display: none; /* this style uses placeholder-only pill inputs, no visible labels */
}

.input-wrap{
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrap i{
  display: none; /* no left icon in this style — clean pill look */
}

.field-input{
  width: 100%;
  padding: 0.95rem 1.3rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text-dark);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field-input::placeholder{ color: var(--text-soft); }

.field-input:focus{
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3.5px rgba(240, 178, 94, 0.18);
}

/* Toggle text/icon docked inside the password field, e.g. "Hide" */
.field-group.has-toggle .input-wrap{
  position: relative;
}

.field-toggle{
  position: absolute;
  right: 1.3rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-mute);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.field-toggle:hover{ color: var(--text-dark); }

.trouble-link{
  display: block;
  font-size: 0.84rem;
  color: var(--text-dark);
  text-decoration: none;
  margin: 0.4rem 0 1.4rem 0.4rem;
}

.trouble-link:hover{ text-decoration: underline; }

.btn-submit{
  width: 100%;
  padding: 0.95rem 1rem;
  background: linear-gradient(180deg, var(--amber), var(--amber-deep));
  color: #2A1A05;
  border: none;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.96rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 8px 20px rgba(217,142,43,0.28);
  transition: transform 0.12s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn-submit i{ display: none; } /* reference design has no arrow icon on the button */

.btn-submit:hover{
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 10px 24px rgba(217,142,43,0.34);
}
.btn-submit:active{ transform: scale(0.99); }

.or-divider{
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 1.6rem 0 1.3rem;
  font-size: 0.8rem;
  color: var(--text-mute);
}

.or-divider::before,
.or-divider::after{
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.social-row{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.7rem;
}

.social-btn{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 0.4rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text-dark);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}

.social-btn:hover{
  border-color: #D8D1C0;
  background: #FAF8F2;
  transform: translateY(-1px);
}

.social-btn span{ font-size: 0.8rem; }

.auth-form-footer{
  text-align: center;
  margin-top: 1.6rem;
  font-size: 0.86rem;
  color: var(--text-mute);
}

.auth-form-footer a{
  color: var(--text-dark);
  font-weight: 700;
  text-decoration: none;
}
.auth-form-footer a:hover{ text-decoration: underline; }

/* Trust strip not used in this layout */
.trust-strip{ display: none; }

/* ============== Responsive ============== */

@media (max-width: 480px){
  .auth-card{
    padding: 2.2rem 1.6rem 1.9rem;
    border-radius: 22px;
  }
  .auth-title{ font-size: 1.45rem; }
  .social-btn{ font-size: 0.78rem; padding: 0.65rem 0.3rem; }
}

@media (prefers-reduced-motion: reduce){
  .btn-submit, .social-btn{ transition: none; }
}
