/* Sign-in controls and optional hero content. Layout loads first. */

.field-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 6px;
}
.field-input {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
  transition: border-color .12s, background .12s, box-shadow .12s;
}
.field-input:focus-within {
  border-color: var(--navy);
  background: var(--bg);
  box-shadow: 0 0 0 3px var(--focus-ring);
}
.field-input input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: var(--fg);
  padding: 13px 14px;
  border-radius: var(--radius);
}
.field-input input::placeholder { color: #aaa; }
.field-input--password input { padding-right: 44px; }

.pw-toggle {
  position: absolute;
  inset-block: 0;
  right: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  border: none;
  background: transparent;
  color: var(--muted);
  transition: color .12s;
}
.pw-toggle:hover { color: var(--fg); }

.field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}
.remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fg);
  cursor: pointer;
  user-select: none;
}
.remember input { width: 15px; height: 15px; accent-color: var(--navy); cursor: pointer; }

.link {
  color: var(--navy);
  font-weight: 500;
}
.link:hover { text-decoration: underline; }

/* Primary button — matches the app's navy CTA */
.btn-primary {
  width: 100%;
  padding: 13px;
  border: 1px solid var(--navy);
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: background .12s, border-color .12s;
}
.btn-primary:hover { background: #002a55; border-color: #002a55; }

.form-status {
  margin: 0;
  font-size: 13px;
  color: var(--green);
}

/* Divider */
.divider {
  position: relative;
  text-align: center;
  margin: 26px 0;
}
.divider::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 50%;
  border-top: 1px solid var(--border);
}
.divider span {
  position: relative;
  background: var(--bg);
  padding: 0 14px;
  font-size: 12px;
  color: var(--muted);
}

/* Google button */
.btn-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--fg);
  font-size: 14px;
  font-weight: 500;
  transition: background .12s, border-color .12s;
}
.btn-google:hover { background: var(--hover); border-color: #b8b8b8; }

.signup-line {
  margin-top: 26px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* ── Right column: hero + testimonials ───────────── */
.signin-hero-col {
  display: none;
  position: relative;
  flex: 1;
  padding: 16px;
}
.signin-hero {
  position: absolute;
  inset: 16px;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-md);
}

.testimonials {
  position: absolute;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  display: flex;
  gap: 14px;
  padding: 0 28px;
  width: 100%;
  justify-content: center;
}
.testimonial {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 256px;
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .6);
  box-shadow: var(--shadow-md);
}
.testimonial-avatar {
  height: 40px;
  width: 40px;
  border-radius: var(--radius);
  object-fit: cover;
  flex-shrink: 0;
}
.testimonial-name { font-size: 13px; font-weight: 600; color: var(--fg); }
.testimonial-handle { font-size: 12px; color: var(--muted); }
.testimonial-text { margin-top: 5px; font-size: 12px; line-height: 1.4; color: #444; }

/* Testimonials hidden for now — markup and styles kept for future use. */
.testimonials { display: none; }

/* Show second/third testimonial only on wider screens */
.testimonial.t2 { display: none; }
.testimonial.t3 { display: none; }
@media (min-width: 1280px) { .testimonial.t2 { display: flex; } }
@media (min-width: 1536px) { .testimonial.t3 { display: flex; } }

/* Two-column layout on md+ */
@media (min-width: 768px) {
  .signin-hero-col { display: block; }
}

/* ── Animations ──────────────────────────────────── */
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(14px); filter: blur(6px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}
@keyframes fadeRiseIn {
  from { opacity: 0; transform: translateY(20px) scale(.98); filter: blur(6px); }
  to   { opacity: 1; transform: translateY(0) scale(1);      filter: blur(0); }
}
.anim { opacity: 1; }

.testimonial {
  opacity: 0;
  animation: fadeRiseIn .8s cubic-bezier(.22, 1, .36, 1) forwards;
}
.testimonial.t1 { animation-delay: .8s; }
.testimonial.t2 { animation-delay: 1.0s; }
.testimonial.t3 { animation-delay: 1.2s; }

@media (prefers-reduced-motion: reduce) {
  .anim, .testimonial { animation: none; opacity: 1; }
}

@media (max-width: 480px) {
  .signin-form-col { padding: 24px 20px; }
  .signin-title { font-size: 28px; }
}
