/* ===== Reset ===== */
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #f0f0f5;
}

:root{
  --pink: #ffbdeb;
}

/* ===== Background ===== */
.bg, .bg-blur {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.bg {
  background: url("background.jpg") no-repeat center center;
  background-size: 105%; /* 5% zoom */
}

.bg-blur {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  background: rgba(0, 0, 0, 0.25);
}

/* ===== Topbar ===== */
.topbar {
  position: relative;
  z-index: 10;
  width: 100%;
}

.topbar-inner {
  height: 92px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 24px;
}

/* Brand / Logo */
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand img {
  height: 64px;      /* Logo in Bar */
  max-width: 45vw;
  user-select: none;
  pointer-events: none;
  filter:
    drop-shadow(0 0 10px #ff3399)
    drop-shadow(0 0 24px #ff66cc)
    drop-shadow(0 0 48px rgba(255, 102, 204, 0.9));
}

.brand-text{
  font-size: 44px;
  font-weight: 900;
  letter-spacing: 2.5px;
  line-height: 1;
  color: var(--pink);
  text-shadow:
    0 0 12px rgba(255,189,235,.75),
    0 0 26px rgba(255,189,235,.55),
    0 0 46px rgba(255,189,235,.35);
}


@keyframes glowPink{
  from{
    text-shadow: 0 0 10px rgba(255,189,235,.55), 0 0 22px rgba(255,189,235,.35);
  }
  to{
    text-shadow: 0 0 16px rgba(255,189,235,.9), 0 0 38px rgba(255,189,235,.6);
  }
}
.brand-text{ animation: glowPink 2s ease-in-out infinite alternate; }

/* Logo rechts neben Text */
.brand-mark {
  height: 40px;           /* kleiner als vorher */
  margin-left: 10px;

  user-select: none;
  pointer-events: none;

  filter:
    drop-shadow(0 0 8px #ff3399)
    drop-shadow(0 0 18px #ff66cc);
}


@keyframes glow {
  from { text-shadow: 0 4px 20px rgba(255, 255, 255, 0.3); }
  to   { text-shadow: 0 4px 30px rgba(255, 255, 255, 0.6); }
}

/* Nav links */
.nav {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: 8px;
  flex: 1; /* takes space between logo and avatar */
}

.nav-link {
  text-decoration: none;
  color: rgba(240, 240, 245, 0.92);
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 102, 204, 0.25);
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.15s linear, box-shadow 0.15s linear, transform 0.1s ease;
}

.nav-link:hover {
  border-color: rgba(255, 102, 204, 0.75);
  box-shadow: 0 0 18px rgba(255, 102, 204, 0.45);
  transform: translateY(-1px);
}

/* Avatar + dropdown */
.account {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.avatar-btn {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  object-fit: cover;
  border: 3px solid #ff66cc;
  box-shadow:
    0 0 12px #ff3399,
    0 0 24px #ff66cc,
    0 0 40px rgba(255, 102, 204, 0.8);
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(56px + 12px);
  right: 0;
  min-width: 180px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(255, 102, 204, 0.35);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
  display: none; /* hidden by default */
}

.dropdown.open { display: block; }

.dropdown-item {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: rgba(240, 240, 245, 0.95);
  text-decoration: none;
  border: 1px solid transparent;
}

.dropdown-item:hover {
  border-color: rgba(255, 102, 204, 0.65);
  box-shadow: 0 0 18px rgba(255, 102, 204, 0.35);
}

/* underline separator */
.topbar-line {
  height: 1px;
  width: 100%;
  background: linear-gradient(
    90deg,
    rgba(255,102,204,0),
    rgba(255,102,204,0.85),
    rgba(255,102,204,0)
  );
  box-shadow: 0 0 16px rgba(255, 102, 204, 0.35);
}

/* Responsive */
@media (max-width: 720px) {
  .topbar-inner { height: 84px; padding: 0 16px; }
  .brand img { height: 54px; }
  .nav { gap: 10px; }
  .nav-link { padding: 9px 10px; font-size: 14px; }
  .avatar { width: 50px; height: 50px; }
  .dropdown { top: calc(50px + 12px); }
}

.page-center{
  min-height: 100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
}
.card{
  width: min(460px, 92vw);
  padding: 22px;
  border-radius: 16px;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,189,235,0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 18px 60px rgba(0,0,0,0.55);
}
.title{
  margin: 0 0 14px 0;
  font-size: 28px;
  font-weight: 900;
  color: #ffbdeb;
  text-shadow: 0 0 18px rgba(255,189,235,0.35);
}
.lbl{ display:block; margin: 12px 0 6px; opacity:.9; }
.inp{
  width:100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,189,235,0.25);
  background: rgba(0,0,0,0.25);
  color: #fff;
  outline: none;
}
.inp:focus{
  border-color: rgba(255,189,235,0.7);
  box-shadow: 0 0 0 3px rgba(255,189,235,0.12);
}
.btn{
  margin-top: 14px;
  width:100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,189,235,0.35);
  background: rgba(0,0,0,0.25);
  color:#fff;
  cursor:pointer;
}
.btn:hover{
  border-color: rgba(255,189,235,0.9);
  box-shadow: 0 0 22px rgba(255,189,235,0.22);
}
.msg{ margin-top: 10px; color: rgba(255,255,255,.9); }
.hint{ margin-bottom: 10px; opacity: .85; }

.user-badge{
  display: inline-flex;
  align-items: center;
  margin-right: 12px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #ffbdeb;
  text-shadow: 0 0 12px rgba(255,189,235,.55);
  user-select: none;
}
