/*
 * css/signin.css
 * Sign-in page layout — split hero + form.
 * Mobile-first: stacks vertically, hero hidden below 640px.
 */

/* ── Page shell ──────────────────────────────────────────────── */
.signin-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
}

/* ── Two-column layout wrapper ───────────────────────────────── */
.signin-layout {
  display: flex;
  flex: 1;
  min-height: 100dvh;
}

/* ── Left hero panel ─────────────────────────────────────────── */
.signin-hero {
  display: none; /* hidden on mobile */
  flex: 1;
  background: linear-gradient(145deg,
    var(--clr-brand-700) 0%,
    var(--clr-brand-800) 55%,
    var(--clr-brand-900) 100%
  );
  padding: var(--space-12) var(--space-10);
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

/* Decorative circles */
.signin-hero::before,
.signin-hero::after {
  content: '';
  position: absolute;
  border-radius: var(--radius-full);
  background: rgb(255 255 255 / 0.04);
  pointer-events: none;
}
.signin-hero::before { width: 480px; height: 480px; top: -120px; right: -140px; }
.signin-hero::after  { width: 320px; height: 320px; bottom: -80px; left: -80px; }

.signin-hero__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  z-index: 1;
}
.signin-hero__logo {
  width: 40px; height: 40px;
  background: rgb(255 255 255 / 0.15);
  border-radius: var(--radius-md);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.signin-hero__logo svg { width: 22px; height: 22px; }
.signin-hero__brand-name {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--text-lg);
  color: #fff;
}

.signin-hero__body { z-index: 1; }
.signin-hero__tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.6);
  margin-bottom: var(--space-4);
}
.signin-hero__headline {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: var(--space-5);
}
.signin-hero__sub {
  font-size: var(--text-base);
  color: rgb(255 255 255 / 0.72);
  line-height: var(--leading-relaxed);
  max-width: 34ch;
}

.signin-hero__stats {
  display: flex;
  gap: var(--space-10);
  z-index: 1;
}
.signin-hero__stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.signin-hero__stat-label {
  display: block;
  font-size: var(--text-xs);
  color: rgb(255 255 255 / 0.55);
  margin-top: var(--space-1);
  font-weight: var(--fw-medium);
}

/* ── Right form panel ────────────────────────────────────────── */
.signin-form-panel {
  width: 100%;
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-8) var(--space-6);
  overflow-y: auto;
}

.signin-form-inner { max-width: 380px; width: 100%; margin: 0 auto; }

/* Header */
.signin-form__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--clr-brand-50);
  color: var(--clr-brand-700);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}
.signin-form__eyebrow-dot {
  width: 7px; height: 7px;
  background: var(--clr-brand-500);
  border-radius: var(--radius-full);
}

.signin-form__title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-2);
}
.signin-form__sub {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
  line-height: var(--leading-relaxed);
}

/* Input with icon */
.input-group { position: relative; }
.input-group__icon {
  position: absolute;
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-disabled);
  pointer-events: none;
  display: flex;
}
.input--has-icon { padding-left: 2.75rem; }

/* Sign-up prompt */
.signup-prompt {
  margin-top: var(--space-6);
  padding: var(--space-4) var(--space-5);
  background: var(--clr-brand-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--clr-brand-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.signup-prompt__text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

/* Mobile brand bar (shown only on mobile when hero is hidden) */
.signin-mobile-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-6) 0;
}
.signin-mobile-brand__logo {
  width: 34px; height: 34px;
  background: var(--clr-brand-500);
  border-radius: var(--radius-md);
  display: grid; place-items: center;
}
.signin-mobile-brand__logo svg { width: 18px; height: 18px; fill: #fff; }
.signin-mobile-brand__name {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--text-base);
  color: var(--color-text-primary);
}

/* ── Sign-up modal internals ─────────────────────────────────── */
.modal__title { font-size: var(--text-xl); margin-bottom: var(--space-1); }
.modal__sub   { font-size: var(--text-sm); color: var(--color-text-secondary); margin-bottom: var(--space-6); }
.modal__footer { display: flex; flex-direction: column; gap: var(--space-3); margin-top: var(--space-6); }

/* ── Responsive: show hero on ≥640px ─────────────────────────── */
@media (min-width: 640px) {
  .signin-mobile-brand { display: none; }
  .signin-hero         { display: flex; }
  .signin-form-panel   { width: 440px; flex-shrink: 0; }
  .signin-form-inner   { max-width: 100%; }
}

@media (min-width: 1024px) {
  .signin-form-panel { width: 480px; padding: var(--space-12) var(--space-10); }
  .signin-hero__headline { font-size: 3rem; }
}
