/* ===================================================
   MAMANGGS - CYBER APP AUTH (LOGIN, REGISTER, FORGOT)
   =================================================== */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 16px;
  position: relative;
}

.auth-mobile-card {
  width: 100%;
  max-width: 420px;
  background: rgba(12, 24, 43, 0.75);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 28px;
  padding: 28px 24px 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  position: relative;
  overflow: hidden;
}

/* --- TOP HEADER NAVIGATION --- */
.auth-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.btn-back-circle, .top-icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
}

.btn-back-circle:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
  box-shadow: 0 0 15px var(--accent-glow);
}

/* --- ANIMATED GLOWING ORB (FALLBACK / BASE) --- */
.orb-container {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.glowing-orb {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ff4d5e, #e63946 40%, #590d16 80%, #000 100%);
  box-shadow: 
    0 0 25px rgba(230, 57, 70, 0.6),
    inset 0 0 15px rgba(255, 255, 255, 0.4),
    inset -4px -4px 12px rgba(0, 0, 0, 0.9);
  position: relative;
  animation: floatAndBreathe 4s infinite alternate ease-in-out;
}

.glowing-orb::after {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 50%;
  border: 1px dashed rgba(230, 57, 70, 0.3);
  animation: rotateRing 12s infinite linear;
}

@keyframes floatAndBreathe {
  0% { transform: translateY(0) scale(1); box-shadow: 0 0 20px rgba(230, 57, 70, 0.5); }
  100% { transform: translateY(-6px) scale(1.06); box-shadow: 0 0 35px rgba(230, 57, 70, 0.85); }
}

@keyframes rotateRing {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===================================================
   INTERACTIVE CYBER MASCOT AVATAR (MAMANG BOT)
   =================================================== */
.mascot-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  position: relative;
}

.mascot-avatar {
  width: 86px;
  height: 86px;
  background: radial-gradient(circle at 35% 35%, #1e293b, #0f172a 75%, #020617 100%);
  border: 2.5px solid var(--accent-red, #e63946);
  border-radius: 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px rgba(230, 57, 70, 0.45), inset 0 0 14px rgba(0, 0, 0, 0.8);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: floatAndBreathe 4s infinite alternate ease-in-out;
}

/* Headset Gaming Maskot */
.mascot-headset {
  position: absolute;
  top: -6px;
  width: 92px;
  height: 44px;
  border: 3.5px solid #f59e0b;
  border-bottom: none;
  border-radius: 50px 50px 0 0;
  z-index: 1;
  pointer-events: none;
}

.mascot-headset::before, .mascot-headset::after {
  content: '';
  position: absolute;
  bottom: -6px;
  width: 10px;
  height: 18px;
  background: #f59e0b;
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
}

.mascot-headset::before { left: -6px; }
.mascot-headset::after { right: -6px; }

/* Wajah & Mata Maskot */
.mascot-face {
  display: flex;
  gap: 16px;
  position: relative;
  z-index: 2;
  transition: transform 0.25s ease;
}

.mascot-eye {
  width: 13px;
  height: 13px;
  background: #38bdf8;
  border-radius: 50%;
  box-shadow: 0 0 10px #38bdf8;
  position: relative;
  transition: all 0.25s ease;
}

.mascot-mouth {
  width: 14px;
  height: 4px;
  background: #94a3b8;
  border-radius: 4px;
  margin-top: 8px;
  transition: all 0.25s ease;
  z-index: 2;
}

/* Tangan Menutup Mata */
.mascot-hands {
  position: absolute;
  top: 30px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 12px;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(22px) scale(0.6);
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 5;
  pointer-events: none;
}

.mascot-hand {
  width: 22px;
  height: 22px;
  background: #f59e0b;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 0 10px rgba(245, 158, 11, 0.4);
}

/* REAKSI: TUTUP MATA (PASSWORD FOCUSED) */
.mascot-avatar.blindfold .mascot-eye {
  height: 2px;
  background: #64748b;
  box-shadow: none;
  border-radius: 2px;
}

.mascot-avatar.blindfold .mascot-hands {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.mascot-avatar.blindfold .mascot-mouth {
  width: 8px;
  border-radius: 50%;
}

/* REAKSI: INTIP SATU MATA (SHOW PASSWORD ON) */
.mascot-avatar.peeking .mascot-eye.left {
  height: 13px;
  background: #38bdf8;
  box-shadow: 0 0 12px #38bdf8;
}

.mascot-avatar.peeking .mascot-hands {
  opacity: 1;
  transform: translateY(12px) translateX(-6px) scale(0.9);
}

/* REAKSI: HORAY / SUKSES LOGIN/REGISTER */
.mascot-avatar.success {
  border-color: #10b981;
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.6);
  animation: mascotJump 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) infinite alternate;
}

.mascot-avatar.success .mascot-headset {
  border-color: #10b981;
}

.mascot-avatar.success .mascot-headset::before,
.mascot-avatar.success .mascot-headset::after {
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.mascot-avatar.success .mascot-eye {
  background: #10b981;
  box-shadow: 0 0 14px #10b981;
  border-radius: 50% 50% 0 0;
  height: 7px;
}

.mascot-avatar.success .mascot-mouth {
  width: 18px;
  height: 9px;
  background: #10b981;
  border-radius: 0 0 12px 12px;
}

@keyframes mascotJump {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-12px) scale(1.08); }
}

/* --- TITLE & SUBTITLE --- */
.auth-title-section {
  text-align: center;
  margin-bottom: 24px;
}

.auth-title-section h1 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.auth-title-section p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  padding: 0 10px;
}

/* --- FORM FIELDS --- */
.auth-form-group {
  margin-bottom: 16px;
}

.auth-form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}

.auth-form-group label span {
  color: var(--accent-red);
}

.auth-input-box {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-box input {
  width: 100%;
  padding: 13px 16px;
  background: rgba(7, 13, 24, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}

.auth-input-box input:focus {
  border-color: var(--accent-red);
  box-shadow: 0 0 12px var(--accent-glow);
}

.toggle-password {
  position: absolute;
  right: 14px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  transition: var(--transition);
}

.toggle-password:hover {
  color: #fff;
}

/* --- FORM OPTIONS (REMEMBER & FORGOT) --- */
.form-options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 0.8rem;
}

.remember-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  cursor: pointer;
}

.remember-label input[type="checkbox"] {
  accent-color: var(--accent-red);
  width: 15px;
  height: 15px;
}

.forgot-link {
  color: var(--text-muted);
  font-weight: 600;
  transition: var(--transition);
}

.forgot-link:hover {
  color: var(--accent-red);
}

/* --- MAIN ACTION BUTTON --- */
.btn-auth-main {
  width: 100%;
  padding: 14px;
  background: var(--accent-red);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-auth-main:hover {
  background: var(--accent-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(230, 57, 70, 0.55);
}

/* --- SOCIAL DIVIDER & BUTTONS --- */
.social-divider {
  display: flex;
  align-items: center;
  margin: 22px 0 16px;
  text-align: center;
}

.social-divider::before, .social-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.social-divider span {
  padding: 0 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.social-btn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.btn-social {
  padding: 11px;
  background: rgba(7, 13, 24, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-social:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}

/* --- BOTTOM SWITCH LINK --- */
.auth-switch-text {
  text-align: center;
  margin-top: 24px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.auth-switch-text a {
  color: #fff;
  font-weight: 700;
  margin-left: 4px;
  transition: var(--transition);
}

.auth-switch-text a:hover {
  color: var(--accent-red);
}

/* ===================================================
   MAMANGGS - CYBER TOAST NOTIFICATION (AUTH OVERRIDE)
   =================================================== */
.mgs-toast-container {
  position: fixed !important;
  top: 24px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 999999 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  width: 90% !important;
  max-width: 380px !important;
  pointer-events: none !important;
}

.mgs-toast {
  width: 100% !important;
  background: rgba(12, 24, 43, 0.95) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 14px !important;
  padding: 14px 18px !important;
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.8) !important;
  pointer-events: auto !important;
  transform: translateY(-40px) scale(0.95) !important;
  opacity: 0 !important;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.mgs-toast.show {
  transform: translateY(0) scale(1) !important;
  opacity: 1 !important;
}

.mgs-toast-icon {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.1rem !important;
  flex-shrink: 0 !important;
}

.mgs-toast.error {
  border-left: 4px solid var(--accent-red) !important;
  box-shadow: 0 8px 25px rgba(230, 57, 70, 0.25) !important;
}

.mgs-toast.error .mgs-toast-icon {
  background: rgba(230, 57, 70, 0.15) !important;
  color: var(--accent-red) !important;
}

.mgs-toast.success {
  border-left: 4px solid #10b981 !important;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.25) !important;
}

.mgs-toast.success .mgs-toast-icon {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #10b981 !important;
}

.mgs-toast-body {
  flex: 1 !important;
}

.mgs-toast-body h5 {
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  color: #fff !important;
  margin-bottom: 2px !important;
}

.mgs-toast-body p {
  font-size: 0.78rem !important;
  color: var(--text-muted) !important;
  line-height: 1.35 !important;
  margin: 0 !important;
}
/* Styling Tombol Sosial Media (Google & Discord) */
.btn-social.btn-discord:hover {
  background: rgba(88, 101, 242, 0.15);
  border-color: #5865f2;
  color: #fff;
}

.btn-social.btn-google:hover {
  background: rgba(234, 67, 53, 0.15);
  border-color: #ea4335;
  color: #fff;
}