:root {
  --music-bg-1: #090611;
  --music-bg-2: #1a1033;
  --music-bg-3: #2a0f3d;
  --music-pink: #ff6b9d;
  --music-violet: #a855f7;
  --music-cyan: #67e8f9;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body.music-login {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow-x: hidden;
  overflow-y: auto;
  color: #fff;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(circle at 18% 18%, rgba(168, 85, 247, 0.22), transparent 32%),
    radial-gradient(circle at 82% 78%, rgba(255, 107, 157, 0.18), transparent 34%),
    linear-gradient(135deg, var(--music-bg-1), var(--music-bg-2) 52%, var(--music-bg-3));
}

body.music-login::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("../img/music-notes.svg");
  background-size: 340px 340px;
  opacity: 0.8;
  pointer-events: none;
}

body.music-login::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, transparent 30%, rgba(5, 3, 10, 0.55) 100%);
  pointer-events: none;
}

.music-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.music-note {
  position: absolute;
  color: rgba(255, 255, 255, 0.16);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1;
  text-shadow: 0 0 24px rgba(168, 85, 247, 0.45);
  animation: drift 12s ease-in-out infinite;
}

.note-1 { left: 8%; top: 18%; font-size: 84px; animation-delay: -2s; }
.note-2 { left: 78%; top: 12%; font-size: 58px; animation-delay: -6s; color: rgba(255, 107, 157, 0.18); }
.note-3 { left: 84%; top: 62%; font-size: 96px; animation-delay: -4s; }
.note-4 { left: 12%; top: 72%; font-size: 52px; animation-delay: -8s; color: rgba(103, 232, 249, 0.14); }
.note-5 { left: 48%; top: 8%; font-size: 44px; animation-delay: -10s; }
.note-6 { left: 62%; top: 82%; font-size: 64px; animation-delay: -1s; color: rgba(255, 107, 157, 0.13); }

@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-4deg); }
  50% { transform: translate3d(0, -18px, 0) rotate(4deg); }
}

.login-shell {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 28px 16px;
  display: grid;
  place-items: center;
}

.login-card {
  width: min(92vw, 410px);
  padding: 42px 38px 30px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 26px;
  background: rgba(16, 11, 31, 0.72);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.music-mark {
  width: 62px;
  height: 62px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  color: #fff;
  background: linear-gradient(135deg, var(--music-pink), var(--music-violet));
  box-shadow: 0 12px 30px rgba(168, 85, 247, 0.4);
}

.login-card h1 {
  margin: 0;
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #fff, #f5d0fe, #bae6fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.login-subtitle {
  margin: 8px 0 26px;
  text-align: center;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.92rem;
}

.login-alert {
  margin-bottom: 18px;
  transition: opacity 0.3s ease, transform 0.3s ease;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.86rem;
  line-height: 1.35;
  color: #fecdd3;
  background: rgba(190, 24, 93, 0.18);
  border: 1px solid rgba(251, 113, 133, 0.35);
}

.login-alert-success {
  color: #bbf7d0;
  background: rgba(22, 101, 52, 0.22);
  border-color: rgba(74, 222, 128, 0.3);
}

.login-alert-info,
.login-alert-warning {
  color: #fde68a;
  background: rgba(146, 64, 14, 0.2);
  border-color: rgba(251, 191, 36, 0.3);
}

.login-card .form-label {
  margin-bottom: 0.4rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.login-card .form-control {
  height: 46px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 11px;
  padding: 0 0.85rem;
}

.login-card .form-control::placeholder {
  color: rgba(255, 255, 255, 0.32);
}

.login-card .form-control:focus {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(216, 180, 254, 0.7);
  box-shadow: 0 0 0 0.2rem rgba(168, 85, 247, 0.18);
}

.password-wrap {
  position: relative;
}

.password-wrap .form-control {
  padding-right: 82px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 7px;
  padding: 6px 9px;
  color: rgba(255, 255, 255, 0.62);
  background: transparent;
  font-size: 0.76rem;
  cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.btn-login {
  width: 100%;
  height: 48px;
  margin-top: 6px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.03em;
  background: linear-gradient(120deg, var(--music-pink), var(--music-violet));
  box-shadow: 0 12px 28px rgba(168, 85, 247, 0.32);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn-login:hover,
.btn-login:focus-visible {
  filter: brightness(1.07);
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(168, 85, 247, 0.42);
  outline: none;
}

.btn-login:active {
  transform: translateY(0);
}

.login-footnote {
  margin: 22px 0 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.34);
  font-size: 0.74rem;
}

@media (max-width: 480px) {
  .login-card {
    padding: 34px 24px 26px;
    border-radius: 20px;
  }
  .login-card h1 {
    font-size: 1.7rem;
  }
  .music-note {
    opacity: 0.7;
  }
}

@media (prefers-reduced-motion: reduce) {
  .music-note {
    animation: none;
  }
}


.login-alert.is-hiding {
  opacity: 0;
  transform: translateY(-4px);
}
