/* fantasy/web/static/app.css
 *
 * Component styles for the Step 2 scaffold: the page shell, the login
 * threshold, the placeholder authenticated landing page, and the footer
 * (which carries the required Yahoo attribution). Every color, font-size,
 * and spacing value references a token from tokens.css — no literals here
 * (the Ceryn CSS rule). Real product views (dashboard, draft board,
 * lineup, news) add their own component CSS in Steps 4-8.
 */

* { box-sizing: border-box; }

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page__main {
  flex: 1 0 auto;
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: var(--size-6) var(--size-4);
}

/* ----- Header (authenticated chrome) ----- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--size-3);
  padding: var(--size-3) var(--size-4);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}

.site-header__brand {
  display: flex;
  align-items: baseline;
  gap: var(--size-2);
  font-weight: var(--weight-semibold);
  font-size: var(--font-size-lg);
  color: var(--color-text);
}

.site-header__brand .dot {
  color: var(--color-accent);
}

.site-header__right {
  display: flex;
  align-items: center;
  gap: var(--size-4);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.site-header__right .email {
  font-family: var(--font-mono);
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 16rem;
  white-space: nowrap;
}

/* ----- Login threshold ----- */
.login {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--size-6);
}

.login__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--size-2);
}

.login__wordmark {
  margin: 0;
  font-size: var(--font-size-4xl);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text);
}

.login__wordmark .dot { color: var(--color-accent); }

.login__tagline {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: var(--font-size-md);
}

.login__form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--size-3);
}

.login__upstream-error {
  color: var(--color-status-bad);
  font-size: var(--font-size-sm);
  margin: 0;
}

/* ----- Buttons ----- */
.btn {
  display: inline-block;
  padding: var(--size-3) var(--size-6);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-size: var(--font-size-base);
  font-weight: var(--weight-medium);
  cursor: pointer;
  transition: background-color var(--transition-fast),
              border-color var(--transition-fast);
}

.btn:hover { text-decoration: none; }

.btn--primary {
  background: var(--color-accent);
  color: var(--color-accent-on);
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  color: var(--color-accent-on);
}

/* ----- Placeholder landing card ----- */
.landing {
  display: flex;
  flex-direction: column;
  gap: var(--size-4);
}

.landing__card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--size-6);
  box-shadow: var(--shadow-sm);
}

.landing__card h1 {
  margin: 0 0 var(--size-2);
  font-size: var(--font-size-2xl);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
}

.landing__card p {
  margin: 0 0 var(--size-3);
  color: var(--color-text-secondary);
}

.landing__card p:last-child { margin-bottom: 0; }

.landing__league {
  display: inline-flex;
  align-items: center;
  gap: var(--size-2);
  padding: var(--size-1) var(--size-3);
  border-radius: var(--radius-pill);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.landing__steps {
  margin: var(--size-2) 0 0;
  padding-left: var(--size-5);
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  line-height: var(--leading-normal);
}

/* ----- Footer + Yahoo attribution (Terms compliance) ----- */
.site-footer {
  flex-shrink: 0;
  padding: var(--size-5) var(--size-4);
  border-top: 1px solid var(--color-border);
  text-align: center;
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.site-footer a { color: var(--color-text-secondary); }

/* ----- Responsive: the login + landing must read on a phone ----- */
@media (max-width: 30rem) {
  .site-header__right .email { max-width: 9rem; }
  .login__wordmark { font-size: var(--font-size-3xl); }
}
