* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  user-select: none;
}

body {
  background-color: #050608;
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* Frame Layar HP Android */
.app-container {
  width: 100%;
  max-width: 420px;
  height: 100vh;
  max-height: 860px;
  background: #0d0e15;
  border-left: 1px solid #222533;
  border-right: 1px solid #222533;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hidden {
  display: none !important;
}

/* =========================================
   STYLE HALAMAN LOGIN / SIGN UP
   ========================================= */
.auth-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(circle at top, #1f1635 0%, #0d0e15 75%);
}

.element-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}

.orb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-shadow: 0 0 8px currentColor;
}
.orb.fire { background: #ff4d4d; color: #ff4d4d; }
.orb.water { background: #3399ff; color: #3399ff; }
.orb.earth { background: #47d147; color: #47d147; }
.orb.air { background: #ffe066; color: #ffe066; }
.orb.dark { background: #b366ff; color: #b366ff; }
.orb.holy { background: #ffffff; color: #ffffff; }

.game-header {
  text-align: center;
  margin-bottom: 24px;
}

.game-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: linear-gradient(to bottom, #fff3b0, #e09f3e, #9e2a2b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.game-subtitle {
  font-size: 11px;
  color: #a89ec9;
  letter-spacing: 2px;
  margin-top: 4px;
  text-transform: uppercase;
}

.auth-card {
  background: rgba(24, 22, 36, 0.9);
  border: 1px solid rgba(224, 159, 62, 0.35);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.tab-switch {
  display: flex;
  background: #100f1a;
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 18px;
}

.tab-btn {
  flex: 1;
  padding: 9px;
  border: none;
  background: transparent;
  color: #8b85a1;
  font-weight: 600;
  font-size: 13px;
  border-radius: 8px;
  cursor: pointer;
}

.tab-btn.active {
  background: linear-gradient(135deg, #c87d28, #8c4a12);
  color: #fff;
}

.input-group { margin-bottom: 12px; }
.input-group label { display: block; font-size: 12px; color: #c4bddb; margin-bottom: 5px; }
.input-group input {
  width: 100%;
  padding: 11px 13px;
  border-radius: 9px;
  border: 1px solid #35304d;
  background: #12111c;
  color: #fff;
  font-size: 14px;
  outline: none;
}

.btn-primary {
  width: 100%;
  padding: 12px;
  margin-top: 6px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #e09f3e, #b85d19);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.status-msg { margin-top: 12px; font-size: 12px; text-align: center; min-height: 16px; color: #ff6b6b; }
.status-msg.success { color: #51cf66; }

/* Toast Notifikasi Global */
.toast-banner {
  position: absolute;
  top: 105px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(17, 24, 39, 0.95);
  border: 1px solid #fbbf24;
  color: #fde047;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  z-index: 50;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,0.7);
}
