/* Hallmark · auth.css — Fastpwin sign-in, sign-up, account, check-email styles.
 * Extends global.css custom properties. OKLCH colour system. */

/* ══════════════════════════════════
   AUTH PAGE LAYOUT (signin/signup)
   ══════════════════════════════════ */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 72px);
  padding: 48px 20px;
  position: relative;
  z-index: 1;
}
.auth-container {
  width: 100%;
  max-width: 420px;
}

/* ── Auth header ── */
.auth-header {
  text-align: center;
  margin-bottom: 32px;
}
.auth-header .nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 800;
  color: var(--text-light);
  letter-spacing: -0.03em;
  text-decoration: none;
  margin-bottom: 24px;
}
.auth-header .nav-logo-mark {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 20px var(--accent-glow);
}
.auth-header .nav-logo-mark svg {
  width: 16px;
  height: 16px;
}
.auth-header h1 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-light);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.auth-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Messages ── */
.auth-message {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
  line-height: 1.5;
}
.auth-message.error {
  background: var(--error-glow);
  color: var(--error);
  border: 1px solid oklch(55% 0.22 25 / 0.20);
}
.auth-message.success {
  background: var(--success-glow);
  color: var(--success);
  border: 1px solid oklch(60% 0.18 145 / 0.20);
}

/* ── Forms ── */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: -0.01em;
}
.label-optional {
  font-weight: 400;
  color: var(--text-dim);
  font-size: 12px;
}
.form-group input {
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius);
  color: var(--text-light);
  font-size: 14px;
  font-family: var(--font-sans);
  letter-spacing: -0.01em;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input::placeholder {
  color: var(--text-dim);
}
.form-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

/* ── Buttons ── */
.auth-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 24px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: var(--text-light);
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform var(--dur-normal) var(--ease-out), box-shadow var(--transition);
  letter-spacing: -0.01em;
  box-shadow: 0 4px 16px var(--accent-glow);
  margin-top: 4px;
}
.auth-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--accent-glow);
}
.auth-btn-primary:active {
  transform: translateY(0);
}
.auth-btn-primary svg {
  width: 14px;
  height: 14px;
}
.auth-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 24px;
  background: transparent;
  color: var(--text-light);
  font-size: 14px;
  font-weight: 600;
  border: 1.5px solid oklch(100% 0 0 / 0.12);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: -0.01em;
}
.auth-btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}
.auth-btn-secondary svg {
  width: 14px;
  height: 14px;
}

/* ── Divider ── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-dark);
}

/* ── Footer text ── */
.auth-footer-text {
  text-align: center;
  margin-top: 28px;
  font-size: 14px;
  color: var(--text-muted);
}
.auth-footer-text a {
  color: var(--accent-teal);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition);
}
.auth-footer-text a:hover {
  color: var(--accent);
}

/* ══════════════════════════════════
   CHECK EMAIL PAGE
   ══════════════════════════════════ */
.check-email-icon {
  margin-bottom: 24px;
}
.check-email-icon svg {
  width: 64px;
  height: 64px;
}
.check-email-address {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-light);
  background: var(--bg-card);
  display: inline-block;
  padding: 8px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border-dark);
  letter-spacing: -0.01em;
  word-break: break-all;
}
.check-email-tips {
  margin-top: 32px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  text-align: left;
}
.check-email-tips p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 10px;
}
.check-email-tips ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.check-email-tips li {
  font-size: 13px;
  color: var(--text-muted);
  padding: 4px 0;
  line-height: 1.6;
}
.check-email-tips li::before {
  content: '•';
  color: var(--accent-teal);
  margin-right: 8px;
  font-weight: 700;
}
.auth-link-btn {
  background: none;
  border: none;
  color: var(--accent-teal);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  font-family: var(--font-sans);
  padding: 0;
}
.auth-link-btn:hover {
  color: var(--accent);
}

/* ══════════════════════════════════
   ACCOUNT PAGE
   ══════════════════════════════════ */
.account-page {
  padding: 64px 0 0;
  position: relative;
  z-index: 1;
}
.account-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}
.account-welcome {
  display: flex;
  align-items: center;
  gap: 16px;
}
.account-avatar {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: var(--text-light);
  flex-shrink: 0;
  box-shadow: 0 4px 16px var(--accent-glow);
}
.account-welcome h1 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-light);
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}
.account-email {
  font-size: 13px;
  color: var(--text-dim);
}
.account-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ── Purchased products grid ── */
.account-section {
  margin-bottom: 0;
}
.purchased-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
}
.purchased-card {
  padding: 24px;
}
.purchased-card-top {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}
.purchased-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--accent-dim);
  border: 1px solid oklch(55% 0.18 280 / 0.20);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.purchased-icon-wrap svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}
.purchased-icon-text {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.purchased-info h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.purchased-info p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}
.purchased-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.purchased-date {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

/* ── Bundle notice ── */
.bundle-notice {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  margin-top: 24px;
}
.bundle-notice-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: oklch(80% 0.13 210 / 0.10);
  border: 1px solid oklch(80% 0.13 210 / 0.20);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bundle-notice-icon svg {
  width: 16px;
  height: 16px;
}
.bundle-notice strong {
  font-size: 14px;
  color: var(--accent-teal);
  display: block;
  margin-bottom: 4px;
}
.bundle-notice p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ── Empty state ── */
.account-empty {
  text-align: center;
  padding: 64px 32px;
}
.empty-icon-wrap {
  margin-bottom: 20px;
}
.empty-icon-wrap svg {
  width: 72px;
  height: 72px;
}
.account-empty h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.account-empty p {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 380px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

/* ── Feature Card (visible to all logged-in users) ── */
.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border-dim);
  border-radius: 16px;
  padding: 32px 36px;
  margin-top: 40px;
  color: var(--text-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute; top: -64px; right: -64px;
  width: 256px; height: 256px;
  background: var(--accent);
  border-radius: 50%;
  filter: blur(64px);
  opacity: 0.06;
  pointer-events: none;
}
.feature-card::after {
  content: '';
  position: absolute; bottom: -64px; left: -64px;
  width: 192px; height: 192px;
  background: var(--accent);
  border-radius: 50%;
  filter: blur(64px);
  opacity: 0.04;
  pointer-events: none;
}
.feature-card > * { position: relative; z-index: 1; }
.feature-card-label {
  display: inline-flex;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted);
  background: var(--accent-dim);
  border: 1px solid oklch(55% 0.18 280 / 0.20);
  padding: 3px 10px;
  border-radius: 5px;
  margin-bottom: 14px;
}
.feature-card-title {
  font-size: 26px; font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}
.feature-card-desc {
  font-size: 14px; color: var(--text-muted);
  line-height: 1.65; max-width: 440px;
}
.feature-card-btn {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 20px;
  padding: 10px 22px;
  background: var(--text-light);
  color: var(--bg-primary);
  font-size: 14px; font-weight: 600;
  border-radius: 10px;
  border: none; cursor: default;
  letter-spacing: -0.2px;
  opacity: 0.6;
}
.feature-card-visual {
  display: flex; align-items: center; gap: 14px;
  flex-shrink: 0;
}
.feature-box {
  width: 132px; height: 56px;
  background: var(--bg-elevated);
  border-radius: 12px;
  border: 1px solid var(--border-dim);
  padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.feature-box::before {
  content: ''; display: block;
  width: 36px; height: 4px;
  background: var(--text-dim);
  border-radius: 2px;
}
.feature-box::after {
  content: ''; display: block;
  width: 68px; height: 3px;
  background: var(--border-dim);
  border-radius: 2px;
}
.feature-box.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px oklch(55% 0.18 280 / 0.12), 0 20px 40px -12px rgba(0,0,0,.4);
}
.feature-box.active::before { background: var(--accent); }
.feature-box.active::after { background: var(--accent-dim); }
.feature-arrow {
  color: var(--text-dim);
  font-size: 18px; font-weight: 500;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .auth-btn-primary,
  .auth-btn-secondary {
    transition-duration: 0.01ms !important;
  }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .account-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .purchased-grid {
    grid-template-columns: 1fr;
  }
  .auth-page {
    padding: 32px 16px;
  }
  .auth-container {
    max-width: 100%;
  }
  .auth-header h1 {
    font-size: 20px;
  }
  .account-page {
    padding-top: 32px;
  }
  .feature-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px;
  }
  .feature-card-visual { margin-top: 16px; }
  .feature-card-title { font-size: 22px; }
}
