/* Auth and dashboard pages style */
html {
  min-height: 100%;
  background-color: #050812;
  color-scheme: dark;
}

body.auth-page {
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(circle at top left, #182039 0%, #0b101f 42%, #050812 100%);
  background-color: #050812;
  color: #e9edf7;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

.auth-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.5rem 0;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 2rem;
}

.auth-panel,
.dashboard-panel {
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 24, 47, 0.95);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.32);
  padding: 3rem;
}

.auth-panel h1,
.dashboard-panel h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.5rem, 4vw, 3.8rem);
  line-height: 1.02;
}

.auth-panel p,
.dashboard-panel p,
.auth-note,
.dashboard-summary p {
  margin: 0;
  color: #c4c9dd;
  line-height: 1.8;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #97a5d8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  padding: 1rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-button.primary {
  background: linear-gradient(135deg, #ff4f48 0%, #ffaf6a 100%);
  color: #08101d;
}

.hero-button.secondary {
  background: rgba(255, 255, 255, 0.07);
  color: #e9edf7;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-button:hover {
  transform: translateY(-1px);
}

.auth-card,
.dashboard-card,
.dashboard-stat {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.85rem;
}

.auth-form {
  margin-top: 2rem;
  display: grid;
  gap: 1.25rem;
}

.auth-form label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.55rem;
  color: #e3e9ff;
}

.auth-form input {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #f2f5ff;
  padding: 1rem 1.1rem;
  font-size: 1rem;
}

.auth-form input::placeholder {
  color: rgba(226, 233, 255, 0.55);
}

.auth-error {
  display: block;
  margin-top: 0.45rem;
  color: #ff9b8f;
  font-size: 0.9rem;
  line-height: 1.4;
}

.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  color: #c4c9dd;
  font-weight: 600;
}

.auth-check input {
  width: 1rem;
  height: 1rem;
  accent-color: #ff8d5f;
}

.auth-form button {
  margin-top: 0.5rem;
  border: none;
  border-radius: 999px;
  padding: 1rem 1.4rem;
  background: linear-gradient(135deg, #ff4f48 0%, #ffaf6a 100%);
  color: #08101d;
  font-weight: 700;
  cursor: pointer;
}

.auth-foot {
  margin-top: 1.4rem;
  font-size: 0.93rem;
  color: #99a5ce;
}

.auth-foot a {
  color: #efb16c;
  text-decoration: none;
}

.dashboard-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.dashboard-stat {
  padding: 1.5rem;
}

.dashboard-stat h3,
.dashboard-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: #f7f8fb;
}

.dashboard-stat strong {
  display: block;
  color: #ffffff;
  font-size: 2rem;
  margin-bottom: 0.6rem;
}

.dashboard-card h2,
.dashboard-card h3 {
  margin: 0 0 0.85rem;
  color: #f3f6ff;
}

.dashboard-card p {
  color: #c5cee5;
}

.dashboard-list {
  display: grid;
  gap: 1rem;
}

.dashboard-item {
  padding: 1.35rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-item h4 {
  margin: 0 0 0.4rem;
  color: #f3f6ff;
}

.dashboard-item p {
  margin: 0;
  color: #b8c1e3;
  font-size: 0.95rem;
}

.dashboard-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #ffb879;
  text-decoration: none;
  font-weight: 700;
  margin-top: 1rem;
}

.dashboard-link svg {
  width: 1rem;
  height: 1rem;
}

.logout-form {
  margin-top: 1.25rem;
}

.logout-form button {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #e9edf7;
  cursor: pointer;
  font-weight: 700;
  padding: 0.9rem 1.25rem;
}

.account-shell {
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 4rem;
}

.account-topbar,
.account-header,
.account-section-heading,
.account-list-item,
.member-access {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.account-topbar {
  min-height: 54px;
}

.account-topbar .logout-form {
  margin: 0;
}

.account-brand,
.account-text-link {
  color: #f3f6ff;
  font-weight: 700;
  text-decoration: none;
}

.account-header {
  align-items: end;
  padding: 4rem 0 2.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.account-header h1 {
  margin: 1rem 0 0.75rem;
  color: #ffffff;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
}

.account-header p,
.member-access p {
  max-width: 680px;
  margin: 0;
  color: #b9c3da;
  line-height: 1.7;
}

.account-identity {
  display: grid;
  min-width: 260px;
  gap: 0.35rem;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.account-identity span {
  color: #8d9ab8;
  font-size: 0.82rem;
}

.account-identity strong {
  overflow-wrap: anywhere;
  color: #ffffff;
}

.account-identity .account-role {
  width: fit-content;
  margin-top: 0.4rem;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  background: rgba(255, 174, 106, 0.14);
  color: #ffbd82;
  font-weight: 700;
}

.account-section,
.member-access {
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.account-section-heading h2,
.member-access h2 {
  margin: 0.35rem 0 0;
  color: #ffffff;
  font-size: 1.65rem;
}

.account-eyebrow {
  margin: 0;
  color: #8ba4ff;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.contribution-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.contribution-metrics div {
  display: grid;
  gap: 0.3rem;
  padding: 1.35rem;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.contribution-metrics div:last-child {
  border-right: 0;
}

.contribution-metrics strong {
  color: #ffffff;
  font-size: 2rem;
}

.contribution-metrics span,
.account-list-item span {
  color: #98a5c0;
  font-size: 0.9rem;
}

.account-list {
  margin-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.account-list-item {
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: inherit;
  text-decoration: none;
}

.account-list-item > div {
  display: grid;
  gap: 0.35rem;
}

.account-list-item strong {
  color: #f6f8ff;
}

.account-list-item .status {
  flex: 0 0 auto;
  padding: 0.35rem 0.6rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 700;
}

.account-list-item .status.pending {
  color: #facc15;
}

.account-list-item .status.published {
  color: #4ade80;
}

.account-list-item .status.rejected {
  color: #fb7185;
}

.account-empty {
  padding: 1.5rem 0;
  color: #98a5c0;
}

.account-game-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.account-game-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  min-height: 112px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(15, 24, 46, 0.76);
  color: inherit;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease;
}

.account-game-item:hover {
  border-color: rgba(99, 170, 255, 0.72);
  background: rgba(20, 32, 60, 0.92);
}

.account-game-item > img {
  width: 150px;
  height: 100%;
  min-height: 112px;
  object-fit: cover;
}

.account-game-copy {
  display: grid;
  align-content: center;
  gap: 0.55rem;
  min-width: 0;
  padding: 1rem 1.15rem;
}

.account-game-copy > strong {
  overflow-wrap: anywhere;
  color: #ffffff;
  font-size: 1.12rem;
}

.rating-display {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  width: fit-content;
}

.rating-stars {
  position: relative;
  display: inline-block;
  color: #475569;
  font-size: 1.05rem;
  line-height: 1;
}

.rating-stars-track,
.rating-stars-fill {
  display: block;
  white-space: nowrap;
}

.rating-stars-fill {
  position: absolute;
  inset: 0 auto 0 0;
  overflow: hidden;
  color: #facc15;
}

.rating-value {
  color: #aab7cf;
  font-size: 0.88rem;
}

.account-game-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.library-badge {
  width: fit-content;
  padding: 0.28rem 0.5rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.library-badge.favorite {
  background: rgba(56, 189, 248, 0.13);
  color: #7dd3fc;
}

.library-badge.personal {
  background: rgba(250, 204, 21, 0.12);
  color: #fde047;
}

.account-open-guide {
  align-self: center;
  margin-right: 1.25rem;
  color: #7dd3fc;
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 3rem;
  padding: 1.35rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ca8c1;
}

.site-footer div {
  display: grid;
  gap: 0.25rem;
}

.site-footer strong {
  color: #ffffff;
}

.site-footer span,
.site-footer a {
  color: #aab5ce;
  font-size: 0.92rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: #ffffff;
}

@media (max-width: 960px) {
  .auth-shell,
  .dashboard-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .auth-panel,
  .dashboard-panel {
    padding: 2rem;
  }

  .account-header,
  .member-access,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-identity {
    width: 100%;
  }

  .contribution-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contribution-metrics div:nth-child(2) {
    border-right: 0;
  }

  .contribution-metrics div:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .account-game-item {
    grid-template-columns: 108px minmax(0, 1fr);
  }

  .account-game-item > img {
    width: 108px;
  }

  .account-open-guide {
    display: none;
  }
}

@media (max-width: 560px) {
  .account-section-heading,
  .account-list-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-header {
    padding-top: 2.5rem;
  }

  .contribution-metrics {
    grid-template-columns: 1fr;
  }

  .contribution-metrics div,
  .contribution-metrics div:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .contribution-metrics div:last-child {
    border-bottom: 0;
  }
}
