/* McDev.TV — globales Login-Widget (auf allen Seiten eingebunden,
   außer /sprites/ und /admin/, die ihre eigene Login-UI haben) */

.mcdev-account-btn{
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 70;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  color: #0a0c16;
  background: linear-gradient(135deg, #7CFC6E, #3ddc84);
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  box-shadow: 0 8px 24px -8px rgba(124,252,110,0.55);
  transition: filter .15s ease, transform .15s ease;
  max-width: 46vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mcdev-account-btn:hover{ filter: brightness(1.08); transform: translateY(-1px); }
.mcdev-account-btn.in-nav{
  position: static;
  box-shadow: none;
  padding: 7px 14px;
  max-width: 150px;
}
.mcdev-account-btn.logged-in{
  background: #131c15;
  color: #7CFC6E;
  border: 1px solid rgba(124,252,110,0.5);
  box-shadow: none;
}

.mcdev-auth-overlay{
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(6,8,14,0.72);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.mcdev-auth-overlay.open{ display: flex; }
.mcdev-auth-modal{
  position: relative;
  width: 100%;
  max-width: 380px;
  background: #10160f;
  border: 1px solid #223226;
  border-radius: 16px;
  padding: 24px 22px;
  color: #e8ebff;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.8);
}
.mcdev-auth-close{
  position: absolute;
  top: 12px; right: 12px;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid #223226;
  border-radius: 8px;
  color: #8990b8;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
}
.mcdev-auth-close:hover{ color: #e8ebff; border-color: #7CFC6E; }
.mcdev-auth-title{
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 16px;
}
.mcdev-auth-tabs{
  display: flex; gap: 4px;
  margin-bottom: 18px;
  background: #0a0c16;
  border-radius: 10px;
  padding: 3px;
}
.mcdev-auth-tab{
  flex: 1;
  border: none;
  background: transparent;
  color: #8990b8;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 0;
  border-radius: 8px;
  cursor: pointer;
}
.mcdev-auth-tab.active{ background: #182419; color: #7CFC6E; }
.mcdev-auth-form{ display: none; flex-direction: column; gap: 10px; }
.mcdev-auth-form.active{ display: flex; }
.mcdev-auth-form input{
  background: #0a0c16;
  border: 1px solid #223226;
  border-radius: 10px;
  color: #e8ebff;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  padding: 11px 13px;
  outline: none;
}
.mcdev-auth-form input:focus{ border-color: #7CFC6E; }
.mcdev-auth-submit{
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #7CFC6E, #3ddc84);
  color: #0a0c16;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  padding: 11px 0;
  cursor: pointer;
}
.mcdev-auth-submit:hover{ filter: brightness(1.06); }
.mcdev-auth-link{
  background: none;
  border: none;
  color: #8990b8;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  padding: 2px 0;
}
.mcdev-auth-link:hover{ color: #7CFC6E; }
.mcdev-auth-msg{
  display: none;
  font-size: 12.5px;
  border-radius: 10px;
  padding: 9px 12px;
  margin-bottom: 12px;
}
.mcdev-auth-msg.show{ display: block; }
.mcdev-auth-msg.error{ background: rgba(239,127,127,0.14); color: #ef8a8a; border: 1px solid rgba(239,127,127,0.35); }
.mcdev-auth-msg.success{ background: rgba(124,252,110,0.14); color: #7CFC6E; border: 1px solid rgba(124,252,110,0.35); }
.mcdev-auth-email{
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  color: #7CFC6E;
  background: rgba(124,252,110,0.08);
  border: 1px solid rgba(124,252,110,0.3);
  border-radius: 10px;
  padding: 9px 12px;
  margin-bottom: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mcdev-auth-hint{
  font-size: 12px;
  color: #8990b8;
  line-height: 1.5;
  margin: 0 0 14px;
}
