/* ============================================================
   login.css — Login / Auth screen styles
   FinResolver · finresolver.in
   ============================================================ */

#loginScreen {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
}
#loginScreen::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(0,229,160,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,160,.025) 1px, transparent 1px);
  background-size: 40px 40px;
}

.login-card {
  position: relative; z-index: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  width: 420px; max-width: 92vw;
  text-align: center;
  box-shadow: 0 40px 80px rgba(0,0,0,.5);
  animation: fadeUp .5s ease both;
}

.login-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-bottom: .5rem;
}
.login-wordmark {
  font-family: var(--font-head);
  font-size: 2rem; font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  display: inline-flex;
  align-items: baseline;
  letter-spacing: -.5px;
}
.login-wordmark span:first-child { color: var(--accent); }
.login-wordmark span:last-child  { color: var(--text); }

.login-tagline {
  font-size: .78rem; color: var(--muted);
  margin-bottom: 2.2rem; letter-spacing: .5px;
}

/* Feature grid */
.login-features {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: .6rem; margin-bottom: 2rem;
}
.login-feat {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .85rem .9rem;
  font-size: .7rem; text-align: left; color: var(--muted);
  display: flex; flex-direction: column; gap: .3rem;
  position: relative; overflow: hidden;
  transition: border-color .2s, transform .15s;
}
.login-feat::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2.5px; background: var(--feat-accent, var(--accent));
}
.login-feat.tracker    { --feat-accent: var(--accent); }
.login-feat.investment { --feat-accent: var(--accent4); }
.login-feat.loan       { --feat-accent: var(--accent3); }
.login-feat.fire       { --feat-accent: var(--accent2); }
.login-feat-icon { font-size: 1.4rem; line-height: 1; margin-bottom: .1rem; }
.login-feat strong {
  display: block; color: var(--text);
  font-size: .76rem; font-weight: 700; margin-bottom: .05rem;
}

/* Google button */
.btn-google {
  display: flex; align-items: center; justify-content: center;
  gap: .85rem; width: 100%; padding: .9rem 1.5rem;
  background: #fff; color: #3c4043;
  border: 1.5px solid #dadce0; border-radius: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: .9rem;
  cursor: pointer; transition: box-shadow .2s, transform .15s, border-color .2s;
  box-shadow: 0 1px 3px rgba(60,64,67,.15);
}
.btn-google:hover { box-shadow: 0 4px 12px rgba(60,64,67,.2); transform: translateY(-1px); border-color: #c6c9cd; }
.btn-google:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-google svg { width: 20px; height: 20px; flex-shrink: 0; }

/* Spinner inside button */
.btn-google .spinner {
  width: 18px; height: 18px;
  border: 2px solid #ccc; border-top-color: #333;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  flex-shrink: 0;
}

.login-note {
  font-size: .68rem; color: var(--muted);
  margin-top: 1.5rem; line-height: 1.7;
}
.login-note a { color: var(--accent4); text-decoration: none; }
.login-note a:hover { text-decoration: underline; }

/* Setup instructions banner */
.setup-banner {
  background: rgba(77,171,247,.08);
  border: 1px solid rgba(77,171,247,.3);
  border-radius: 10px;
  padding: .85rem 1rem;
  margin-bottom: 1.5rem;
  text-align: left;
  font-size: .73rem;
  color: var(--accent4);
  line-height: 1.6;
}
.setup-banner strong { display: block; margin-bottom: .3rem; font-size: .78rem; }
.setup-banner code {
  background: rgba(0,0,0,.3); border-radius: 4px;
  padding: .05rem .35rem; font-family: var(--font-mono);
  font-size: .7rem; color: var(--accent);
}

/* ── Guest button ─────────────────────────────────────────── */
.login-divider {
  display: flex; align-items: center; gap: .75rem;
  margin: 1rem 0 .75rem; color: var(--muted); font-size: .72rem;
}
.login-divider::before,
.login-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

.btn-guest {
  width: 100%; padding: .8rem 1.5rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: .88rem;
  cursor: pointer; transition: border-color .2s, color .2s, background .2s;
}
.btn-guest:hover {
  border-color: var(--accent); color: var(--text);
  background: rgba(0,229,160,.05);
}

/* ── Guest banner inside app ──────────────────────────────── */
.guest-banner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  background: rgba(255,209,102,.07);
  border: 1px solid rgba(255,209,102,.3);
  border-radius: var(--radius);
  padding: .7rem 1.1rem;
  margin-bottom: 1.1rem;
  font-size: .78rem; color: var(--accent3);
}
.btn-guest-upgrade {
  background: var(--accent3); color: #000;
  border: none; border-radius: 6px;
  font-family: var(--font-head); font-weight: 700; font-size: .72rem;
  padding: .35rem .85rem; cursor: pointer;
  white-space: nowrap; transition: opacity .15s;
  flex-shrink: 0;
}
.btn-guest-upgrade:hover { opacity: .85; }

/* ── Login logo image ── */
.login-logo-img {
  width: 48px; height: 48px;
  object-fit: contain;
  display: block;
  border-radius: 0;
  background: transparent;
}
