/* Login / Registro — Jewel MU */
.social-body-auth .social-main {
  padding-top: 12px;
  padding-bottom: 48px;
}

.social-auth-page {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 140px);
  padding: 32px 16px 48px;
  overflow: hidden;
}

.social-auth-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.social-auth-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.55;
  animation: social-auth-orb 14s ease-in-out infinite;
}

.social-auth-orb--gold {
  width: 340px;
  height: 340px;
  top: 8%;
  left: 12%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.45) 0%, transparent 70%);
}

.social-auth-orb--violet {
  width: 280px;
  height: 280px;
  bottom: 10%;
  right: 8%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.35) 0%, transparent 70%);
  animation-delay: -5s;
}

.social-auth-orb--cyan {
  width: 220px;
  height: 220px;
  top: 42%;
  right: 22%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.22) 0%, transparent 70%);
  animation-delay: -9s;
}

@keyframes social-auth-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(18px, -24px) scale(1.06); }
  66% { transform: translate(-14px, 16px) scale(0.94); }
}

.social-auth-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
}

.social-auth-card {
  position: relative;
  background: linear-gradient(165deg, rgba(22, 22, 28, 0.94) 0%, rgba(12, 12, 16, 0.98) 100%);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 20px;
  padding: 38px 40px 34px;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 48px rgba(212, 175, 55, 0.06);
  backdrop-filter: blur(12px);
  animation: social-auth-card-in 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
  overflow: hidden;
}

.social-auth-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold-2), transparent);
  opacity: 0.85;
}

.social-auth-card--register {
  border-color: rgba(124, 58, 237, 0.28);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 48px rgba(124, 58, 237, 0.08);
}

.social-auth-card--register::before {
  background: linear-gradient(90deg, transparent, #a855f7, #d4af37, transparent);
}

@keyframes social-auth-card-in {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.social-auth-brand {
  text-align: center;
  margin-bottom: 26px;
}

.social-auth-brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.06));
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.12);
  font-size: 1.6rem;
  animation: social-auth-badge-pulse 3s ease-in-out infinite;
}

.social-auth-card--register .social-auth-brand-badge {
  background: linear-gradient(145deg, rgba(168, 85, 247, 0.22), rgba(212, 175, 55, 0.08));
  border-color: rgba(168, 85, 247, 0.4);
}

@keyframes social-auth-badge-pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(212, 175, 55, 0.12); transform: translateY(0); }
  50% { box-shadow: 0 12px 32px rgba(212, 175, 55, 0.22); transform: translateY(-2px); }
}

.social-auth-brand .auth-brand-name {
  font-size: 1.65rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #f5e6a8 0%, var(--gold) 45%, var(--gold-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.social-auth-brand-tagline {
  font-size: 0.84rem;
  color: var(--text-2);
  margin-top: 6px;
}

.social-auth-head {
  margin-bottom: 22px;
}

.social-auth-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  color: var(--text);
}

.social-auth-subtitle {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.45;
  margin: 0;
}

.social-auth-notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 22px;
  font-size: 0.82rem;
  line-height: 1.45;
  animation: social-auth-card-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.social-auth-notice strong {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 4px;
  color: var(--text);
}

.social-auth-notice p {
  margin: 0;
  color: var(--text-2);
}

.social-auth-notice-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 1.1rem;
}

.social-auth-notice--email {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(212, 175, 55, 0.08));
  border: 1px solid rgba(239, 68, 68, 0.35);
  box-shadow: 0 0 24px rgba(239, 68, 68, 0.08);
}

.social-auth-notice--email .social-auth-notice-icon {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.social-auth-notice--email strong {
  color: #fecaca;
}

.social-auth-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.social-auth-perk {
  flex: 1 1 calc(50% - 4px);
  min-width: 120px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.76rem;
  color: var(--text-2);
  line-height: 1.35;
}

.social-auth-perk span {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.social-auth-field {
  margin-bottom: 18px;
}

.social-auth-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 7px;
}

.social-auth-label-required::after {
  content: " *";
  color: var(--gold);
}

.social-auth-input-wrap {
  position: relative;
}

.social-auth-input {
  width: 100%;
  height: 48px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0 14px;
  font-size: 0.92rem;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.social-auth-input:hover {
  border-color: rgba(212, 175, 55, 0.25);
}

.social-auth-input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15), 0 0 24px rgba(212, 175, 55, 0.08);
}

.social-auth-input::placeholder {
  color: var(--text-3);
}

.social-auth-input--highlight {
  border-color: rgba(239, 68, 68, 0.35);
}

.social-auth-input--highlight:focus {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.social-auth-hint {
  font-size: 0.76rem;
  color: var(--text-3);
  margin-top: 6px;
  line-height: 1.4;
}

.social-auth-hint--warn {
  color: #fca5a5;
  font-weight: 600;
}

.social-auth-hint a {
  color: var(--gold);
  font-weight: 600;
}

.social-auth-hint a:hover {
  text-decoration: underline;
}

.social-auth-btn {
  position: relative;
  width: 100%;
  height: 50px;
  margin-top: 8px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  overflow: hidden;
  background: linear-gradient(135deg, var(--gold) 0%, #e8c547 45%, var(--gold-2) 100%);
  color: #0a0a0a;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
  box-shadow: 0 8px 28px rgba(212, 175, 55, 0.25);
}

.social-auth-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-18deg);
  transition: left 0.55s ease;
}

.social-auth-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 12px 36px rgba(212, 175, 55, 0.35);
}

.social-auth-btn:hover::after {
  left: 140%;
}

.social-auth-btn:active {
  transform: translateY(0);
}

.social-auth-card--register .social-auth-btn {
  background: linear-gradient(135deg, #c084fc 0%, var(--gold) 55%, var(--gold-2) 100%);
  box-shadow: 0 8px 28px rgba(168, 85, 247, 0.2);
}

.social-auth-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  text-align: center;
  font-size: 0.84rem;
  color: var(--text-2);
}

.social-auth-footer a {
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
}

.social-auth-footer a:hover {
  text-decoration: underline;
}

.social-auth-tos {
  font-size: 0.76rem;
  color: var(--text-3);
  line-height: 1.45;
  margin: 4px 0 16px;
}

.social-auth-tos a {
  color: var(--gold);
}

.social-recaptcha {
  margin-bottom: 16px;
  transform-origin: left top;
}

@media (max-width: 500px) {
  .social-auth-card {
    padding: 28px 22px 26px;
    border-radius: 16px;
  }
  .social-auth-perk {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .social-auth-card,
  .social-auth-notice,
  .social-auth-orb,
  .social-auth-brand-badge {
    animation: none;
  }
  .social-auth-btn::after {
    display: none;
  }
}
