/* ==========================================================================
   Login screen: super black / glossy black / silver theme.
   Loaded after the app CSS (see <link> in index.html). Remove the <link> to
   go back to the pink/violet login. Only login-screen classes are touched.
   ========================================================================== */

/* Background: pure black with a soft silver sheen instead of pink/violet glows */
.theme-shell:has(.dg-login-glow) { background: #000 !important; background-image: none !important; }
.dg-login-glow {
  background:
    radial-gradient(900px 520px at 30% 20%, rgba(255,255,255,0.07), transparent 60%),
    radial-gradient(800px 600px at 75% 55%, rgba(200,205,215,0.06), transparent 60%),
    radial-gradient(1200px 500px at 50% 115%, rgba(255,255,255,0.05), transparent 60%),
    radial-gradient(circle at 50% 45%, rgba(0,0,0,0) 55%, rgba(0,0,0,0.7) 100%) !important;
}

/* Shared silver tokens */
.dg-auth, .dg-cw {
  --pink: #E5E7EB;
  --tier-4k: #E5E7EB;
  --tier-2k: #C0C4CC;
  --ink: #F5F5F5;
  --ink-soft: #A3A3A3;
  --ink-mute: #737373;
  --line: rgba(255,255,255,0.09);
  --line-strong: rgba(255,255,255,0.22);
  --surface: transparent;
  --surface-2: rgba(255,255,255,0.06);
  --well: rgba(255,255,255,0.03);
}

/* Glossy black surface used by the sign-in card and the info cards */
.dg-auth,
.dg-cw-app, .dg-cw-picker, .dg-cw-tier-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.075) 0%, rgba(255,255,255,0.02) 38%, rgba(255,255,255,0) 39%),
    linear-gradient(180deg, #131313 0%, #050505 100%) !important;
  border: 1px solid #262626 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 24px 70px rgba(0,0,0,0.75) !important;
}
.dg-cw-app:hover, .dg-cw-tier-card:hover { border-color: #8a8a8a !important; }

/* Silver headings */
.dg-auth h2, .dg-cw h1 {
  background: linear-gradient(180deg, #ffffff 0%, #dcdfe4 40%, #9ca3af 62%, #eef0f3 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent !important;
}

/* Fields */
.dg-auth input[type="text"], .dg-auth input[type="email"], .dg-auth input[type="password"] {
  background: #050505 !important;
  border-color: #2a2a2a !important;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.8) !important;
}
.dg-auth input[type="text"]:focus, .dg-auth input[type="email"]:focus, .dg-auth input[type="password"]:focus {
  border-color: #d4d4d8 !important;
  box-shadow: 0 0 0 3px rgba(229,231,235,0.12), inset 0 1px 3px rgba(0,0,0,0.8) !important;
}
.dg-auth input[type="checkbox"] { accent-color: #d4d4d8 !important; }
.dg-auth .dg-auth-stat { background: #0a0a0a; border-color: #2a2a2a; }

/* Sign In button: metallic silver */
.dg-signin-cta {
  background: linear-gradient(180deg, #ffffff 0%, #e4e6ea 30%, #b4b9c2 62%, #e9ebee 100%) !important;
  color: #0a0a0a !important;
  border: 1px solid #f4f4f5 !important;
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 6px rgba(0,0,0,0.18), 0 14px 40px rgba(255,255,255,0.10) !important;
}
.dg-signin-cta > * { color: #0a0a0a !important; }
.dg-signin-cta:hover { filter: brightness(1.06); box-shadow: inset 0 1px 0 #fff, 0 18px 50px rgba(255,255,255,0.16) !important; }
.dg-signin-cta:focus-visible { outline-color: #e5e7eb !important; }

/* Sign Up / switch button: glossy black */
.dg-auth .dg-auth-switch {
  background: linear-gradient(180deg, #1c1c1c, #070707) !important;
  border-color: #3a3a3a !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}
.dg-auth .dg-auth-switch:hover { border-color: #a1a1aa !important; }

/* Provider chips and servers */
.dg-cw-chip { background: #0d0d0d !important; border: 1px solid #262626 !important; }
.dg-cw-chip[aria-pressed="true"] {
  background: linear-gradient(180deg, #ffffff, #c9cdd4) !important;
  color: #0a0a0a !important; border-color: #f4f4f5 !important;
}
.dg-cw-server { background: #070707 !important; border: 1px solid #1f1f1f !important; }
.dg-cw-server:hover { border-color: #3f3f46 !important; }
.dg-cw-server[aria-checked="true"] {
  border-color: #d4d4d8 !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)) !important;
  box-shadow: 0 0 0 1px rgba(212,212,216,0.25), 0 0 24px rgba(255,255,255,0.06);
}
/* Tier colours: 4K = gold, 2K = silver.
   login-lines.js tags each badge/row with dg-tier-4k or dg-tier-2k from its text. */
.dg-cw-tier { font-weight: 700 !important; background: rgba(255,255,255,0.03) !important; }
.dg-cw-tier.dg-tier-4k {
  color: #F5C542 !important; -webkit-text-fill-color: #F5C542 !important;
  border-color: #D4A72C !important;
  background: linear-gradient(180deg, rgba(245,197,66,0.16), rgba(184,134,11,0.06)) !important;
  text-shadow: 0 0 8px rgba(245,197,66,0.45);
  box-shadow: 0 0 10px rgba(245,197,66,0.22) !important;
}
.dg-cw-tier.dg-tier-2k {
  color: #E5E7EB !important; -webkit-text-fill-color: #E5E7EB !important;
  border-color: #9CA3AF !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.03)) !important;
  text-shadow: 0 0 6px rgba(255,255,255,0.25);
}
/* Credit costs: gold on 4K servers, silver on the rest; the big readout gold */
.dg-cw-server.dg-tier-4k .dg-cw-cost, .dg-cw-server.dg-tier-4k .dg-cw-cost em { color: #F5C542 !important; text-shadow: 0 0 8px rgba(245,197,66,0.35); }
.dg-cw-cost { color: #D4D4D8 !important; }
.dg-cw-readout b {
  background: linear-gradient(180deg, #FFF3B0 0%, #F5C542 50%, #B8860B 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent !important;
  filter: drop-shadow(0 0 8px rgba(245,197,66,0.35));
}
/* Tier cards: first (2K) silver, second (4K) gold */
.dg-cw-tier-head b {
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent !important;
}
.dg-cw-tier-card:nth-child(1) .dg-cw-tier-head b {
  background-image: linear-gradient(180deg, #ffffff 0%, #dcdfe4 40%, #9ca3af 62%, #eef0f3 100%);
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.25));
}
.dg-cw-tier-card:nth-child(2) .dg-cw-tier-head b {
  background-image: linear-gradient(180deg, #FFF3B0 0%, #F5C542 50%, #B8860B 100%);
  filter: drop-shadow(0 0 8px rgba(245,197,66,0.4));
}
.dg-cw-tier-card:nth-child(2) { border-color: rgba(212,167,44,0.45) !important; }

/* Top bar */
.dg-topbar { background: rgba(0,0,0,0.85) !important; border-bottom: 1px solid #1a1a1a !important; backdrop-filter: blur(10px); }
.dg-store-cta.dg-topbar-store {
  background: linear-gradient(180deg, #FFF3B0 0%, #F5C542 40%, #C9971C 75%, #F2CF63 100%) !important;
  color: #1a1203 !important;
  border: 1px solid #FFE58A !important;
  box-shadow: inset 0 1px 0 #FFF8D6, inset 0 -2px 6px rgba(120,80,0,0.25), 0 8px 26px rgba(245,197,66,0.35) !important;
}
.dg-store-cta.dg-topbar-store:hover { filter: brightness(1.07); box-shadow: inset 0 1px 0 #FFF8D6, 0 10px 32px rgba(245,197,66,0.5) !important; }

.dg-auth :focus-visible, .dg-cw :focus-visible { outline-color: #e5e7eb !important; }

/* Developer posters moved to the public /about page */
section[aria-labelledby="about-design-grabber-heading"] { display: none !important; }

/* Notifications panel removed (desktop-app / font promo card, top right) */
div.fixed.right-4.top-24.w-\[340px\] { display: none !important; }
