/* ========== Login / Register Page ========== */
.login-page {
  min-height: 100vh;
  min-height: 100dvh;
  background: #FFF9E6;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.mp-shell--login .login-page {
  min-height: 100%;
  flex: 1;
  width: 100%;
  box-sizing: border-box;
}

/* Background decorations */
.login-bg-duck {
  position: fixed;
  bottom: -24px;
  right: -24px;
  width: 220px;
  opacity: 0.08;
  pointer-events: none;
  transform: rotate(10deg);
}
.login-bg-star {
  position: fixed;
  top: 40px;
  left: 40px;
  color: #FFD166;
  opacity: 0.15;
  pointer-events: none;
  animation: pulse-soft 3s ease-in-out infinite;
}
.login-bg-heart {
  position: fixed;
  bottom: 120px;
  left: 60px;
  color: #F4A261;
  opacity: 0.1;
  pointer-events: none;
  transform: rotate(-12deg);
}

/* Card */
.login-card {
  background: #fff;
  border-radius: 40px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.08);
  border: 1px solid #FFE8C0;
  width: 100%;
  max-width: 420px;
  padding: 40px 36px 36px;
  position: relative;
  z-index: 1;
  animation: card-in 0.5s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(32px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Logo */
.login-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}
.login-logo-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #FFD166;
  box-shadow: 0 4px 16px rgba(255,209,102,0.3);
}
.login-logo-title {
  font-size: 1.875rem;
  font-weight: 900;
  color: #F4A261;
  letter-spacing: 0.05em;
}
.login-logo-sub {
  font-size: 0.875rem;
  color: #9ca3af;
  font-weight: 700;
  margin-top: -8px;
}

/* Tab Switcher */
.login-tabs {
  display: flex;
  background: #FFF9E6;
  border-radius: 9999px;
  padding: 4px;
  margin-bottom: 28px;
  gap: 4px;
}
.login-tab {
  flex: 1;
  padding: 10px;
  border-radius: 9999px;
  border: none;
  background: transparent;
  font-size: 1rem;
  font-weight: 900;
  color: #9ca3af;
  cursor: pointer;
  transition: all 0.3s;
}
.login-tab.active {
  background: #fff;
  color: #F4A261;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Form */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.login-field {
  position: relative;
}
.login-field-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
  display: flex;
  align-items: center;
}
.login-input {
  width: 100%;
  padding: 16px 16px 16px 48px;
  border-radius: 16px;
  border: 2px solid #f3f4f6;
  background: #FFF9E6;
  font-size: 1rem;
  font-weight: 700;
  color: #264653;
  outline: none;
  transition: all 0.2s;
}
.login-input:focus {
  border-color: #FFD166;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255,209,102,0.15);
}
.login-input::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

/* Submit Button */
.login-submit-btn {
  width: 100%;
  padding: 18px;
  border-radius: 9999px;
  border: none;
  background: linear-gradient(135deg, #FFD166, #F4A261);
  color: #fff;
  font-size: 1.125rem;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(244,162,97,0.3);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  margin-top: 8px;
}
.login-submit-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 32px rgba(244,162,97,0.4);
}
.login-submit-btn:active { transform: scale(0.97); }
.login-submit-btn .shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.7s;
  pointer-events: none;
}
.login-submit-btn:hover .shine { transform: translateX(100%); }

/* Error message */
.login-error {
  background: #fff0f0;
  border: 1px solid #fecaca;
  color: #dc2626;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.875rem;
  font-weight: 700;
  display: none;
  align-items: center;
  gap: 8px;
  animation: shake 0.3s ease;
}
.login-error.show { display: flex; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* Success tip on register */
.login-tip {
  text-align: center;
  font-size: 0.8125rem;
  color: #9ca3af;
  font-weight: 700;
  margin-top: 12px;
}
.login-tip span {
  color: #F4A261;
  cursor: pointer;
  text-decoration: underline;
}
