body.login-page {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: linear-gradient(180deg, #6b3fa8 0%, #4a2878 30%, #3d1d63 100%);
}

.login-header {
  text-align: center;
  padding: 24px 20px 16px;
  color: white;
}

.login-logo {
  font-size: 28px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  margin-bottom: 4px;
}

.login-logo span {
  color: var(--ym-yellow);
}

.login-tagline {
  font-size: 11px;
  opacity: 0.9;
}

.login-box {
  margin: 0 24px;
  background: var(--ym-bg-gradient);
  border: 2px solid var(--ym-purple-light);
  border-radius: 6px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.login-box h2 {
  font-size: 13px;
  color: var(--ym-purple);
  margin-bottom: 14px;
  text-align: center;
}

.login-tabs {
  display: flex;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--ym-border);
}

.login-tab {
  flex: 1;
  padding: 6px;
  text-align: center;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 11px;
  color: var(--ym-purple);
}

.login-tab.active {
  border-bottom-color: var(--ym-purple);
  font-weight: bold;
}

.login-error {
  background: #ffe0e0;
  border: 1px solid #ff6666;
  color: #cc0000;
  padding: 6px 8px;
  margin-bottom: 10px;
  border-radius: 3px;
  font-size: 10px;
}

.login-options {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 10px 0;
  font-size: 10px;
}

.login-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}

.login-actions .ym-btn-primary {
  min-width: 80px;
}

.login-footer {
  margin-top: auto;
  text-align: center;
  padding: 12px;
  color: rgba(255,255,255,0.7);
  font-size: 10px;
}

.login-downloads {
  margin: 0 24px 12px;
  padding: 14px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  backdrop-filter: blur(4px);
}

.login-downloads-title {
  text-align: center;
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}

.login-downloads-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.login-download-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background 0.15s, transform 0.1s;
}

a.login-download-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: translateY(-1px);
}

.login-download-android {
  background: linear-gradient(135deg, rgba(92, 45, 145, 0.85), rgba(61, 29, 99, 0.9));
  border-color: rgba(255, 204, 0, 0.35);
}

.login-download-android:hover {
  background: linear-gradient(135deg, rgba(107, 63, 168, 0.95), rgba(74, 40, 120, 0.95));
}

.login-download-pc {
  background: rgba(255, 255, 255, 0.1);
}

.login-download-soon {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.15);
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.15);
}

a.login-download-soon {
  pointer-events: auto;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

a.login-download-soon:hover {
  opacity: 0.75;
}

.login-download-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ym-yellow, #ffcc00);
}

.login-download-icon svg {
  width: 22px;
  height: 22px;
}

.login-download-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 10px;
  line-height: 1.25;
  opacity: 0.92;
}

.login-download-label strong {
  font-size: 12px;
  color: #fff;
}

.login-pc-download {
  display: none;
}

.login-yahoo-guy {
  text-align: center;
  margin: 8px 0;
  filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.35));
  line-height: 0;
}

.login-smiley {
  display: inline-block;
  vertical-align: middle;
}

.login-smiley-face {
  fill: #ffcc00;
  stroke: #c48a00;
  stroke-width: 2;
}

.login-smiley-eye {
  fill: #3d1d63;
}

.login-smiley-mouth-closed {
  stroke: #3d1d63;
  stroke-width: 3.5;
  fill: none;
}

.login-smiley-mouth-open {
  fill: #3d1d63;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center top;
}

.login-smiley-tongue {
  fill: #e85a6b;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center top;
}

/* Classic YM-style laugh: bounce + mouth opens wide */
.login-yahoo-guy.login-laugh {
  animation: yahoo-guy-laugh-bounce 1.2s ease-out;
}

.login-yahoo-guy.login-laugh .login-smiley-mouth-closed {
  animation: yahoo-mouth-hide 1.2s ease-out forwards;
}

.login-yahoo-guy.login-laugh .login-smiley-mouth-open {
  animation: yahoo-mouth-laugh 1.2s ease-out forwards;
}

.login-yahoo-guy.login-laugh .login-smiley-tongue {
  animation: yahoo-tongue-laugh 1.2s ease-out forwards;
}

.login-yahoo-guy.login-laugh .login-smiley-eye {
  animation: yahoo-eyes-squint 1.2s ease-out;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes yahoo-guy-laugh-bounce {
  0% { transform: translateY(0) scale(1) rotate(0deg); }
  12% { transform: translateY(-16px) scale(1.12) rotate(-4deg); }
  28% { transform: translateY(0) scale(1.06) rotate(3deg); }
  42% { transform: translateY(-10px) scale(1.1) rotate(-2deg); }
  58% { transform: translateY(0) scale(1.04) rotate(2deg); }
  74% { transform: translateY(-5px) scale(1.06) rotate(-1deg); }
  100% { transform: translateY(0) scale(1) rotate(0deg); }
}

@keyframes yahoo-mouth-hide {
  0%, 8% { opacity: 1; }
  18%, 100% { opacity: 0; }
}

@keyframes yahoo-mouth-laugh {
  0%, 8% {
    opacity: 0;
    transform: scaleY(0.15);
  }
  22% {
    opacity: 1;
    transform: scaleY(1.05);
  }
  40% {
    opacity: 1;
    transform: scaleY(0.85);
  }
  55% {
    opacity: 1;
    transform: scaleY(1.1);
  }
  72% {
    opacity: 1;
    transform: scaleY(0.95);
  }
  100% {
    opacity: 1;
    transform: scaleY(1);
  }
}

@keyframes yahoo-tongue-laugh {
  0%, 18% {
    opacity: 0;
    transform: scaleY(0.2);
  }
  28% {
    opacity: 1;
    transform: scaleY(1);
  }
  100% {
    opacity: 1;
    transform: scaleY(1);
  }
}

@keyframes yahoo-eyes-squint {
  0%, 10% { transform: scaleY(1); }
  25%, 70% { transform: scaleY(0.55); }
  100% { transform: scaleY(1); }
}

.login-sound-btn {
  margin-left: auto;
  flex-shrink: 0;
}

.login-sound-btn.sounds-muted {
  opacity: 0.45;
}

